#mongodb #macro #collection #database #schema

mongodb-ext

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

9 releases (4 major breaking)

Uses new Rust 2021

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

#830 in Database interfaces

24 downloads per month

Custom license

33KB
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

~20–28MB
~588K SLoC