5 releases

0.0.5 Sep 11, 2023
0.0.4 Sep 9, 2023
0.0.3 Jul 20, 2023
0.0.2 Jul 1, 2023
0.0.1 Jun 4, 2023

#2069 in Development tools

33 downloads per month

MIT and GPL-3.0-or-later

21KB
401 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

~78MB
~1.5M SLoC