mongo-data

Crates.iomongo-data
lib.rsmongo-data
version0.0.5
sourcesrc
created_at2023-06-01 18:29:02.200435
updated_at2023-06-03 15:11:58.963028
descriptionMongo data
homepage
repository
max_upload_size
id880013
size46,434
robinson mgbah (ebrinktech)

documentation

README

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");
Commit count: 0

cargo fmt