5 releases

0.0.5 Jun 3, 2023
0.0.4 Jun 2, 2023
0.0.3 Jun 1, 2023
0.0.2 Jun 1, 2023
0.0.1 Jun 1, 2023

#2508 in Development tools

43 downloads per month

MIT license

20KB
386 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

~51MB
~1M SLoC