#mongo-db

mongodb-ext

An extension crate for mongodb to create a database setup without boilerplate

9 releases (4 major breaking)

4.3.2 Jan 30, 2022
4.2.2 Jan 29, 2022
3.1.0 Jan 23, 2022
2.1.0 Jan 18, 2022
0.1.0 Dec 31, 2021

#2815 in Database interfaces

Custom license

34KB
388 lines

An easy to use extension for the mongodb crate

This Rust crate provides a macro to create a mongodb database setup without any boilerplate.

Supports schema versioning, changing / disabling automatic generation of _id, implementations and much more.

See the crate's documentation for more information.


lib.rs:

This crate provides the macro mongo_db to model a mongoDB database.

Features

Feature flags are documented here.

default

This feature enables the following feature(s):

  • mongodb-gridfs

mongodb-gridfs

Enabling this feature creates automatic implementations of the then-available trait GridFSDb.

Dependencies

~27–38MB
~698K SLoC