Crates.io | hub1989-mongo-data |
lib.rs | hub1989-mongo-data |
version | 0.0.8 |
source | src |
created_at | 2023-06-04 03:51:28.627211 |
updated_at | 2024-05-02 15:07:17.549177 |
description | Mongo data |
homepage | |
repository | |
max_upload_size | |
id | 881973 |
size | 47,840 |
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.
let db = mongo_data::config::init_db(mongo_uri, database_name)
.await
.expect("could not connect to database");