11 releases (3 stable)
1.2.0 | Dec 3, 2024 |
---|---|
1.1.0 | Dec 3, 2024 |
0.0.8 | May 2, 2024 |
0.0.5 | Sep 11, 2023 |
0.0.1 | Jun 4, 2023 |
#1057 in Development tools
494 downloads per month
25KB
480 lines
rust-mongo-data
A library that offers out of the box repository for mongo database(inspired by springboot data
)/
The idea is to abstract away some of the boilerplate that you have write for every repository.
Using generics, provide implementation for CRUD
operations and exposes methods to get documents
by filter for single
or multiple
documents.
Usage
Database Connection
let db = mongo_data::config::init_db(mongo_uri, database_name)
.await
.expect("could not connect to database");
Dependencies
~46–62MB
~1M SLoC