Expand description

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.

Macros

Model a mongodb database.

Structs

Defines the default type inside an Option for the _id field.

Constants

Defines the default value used as schema version in MongoCollection::SCHEMA_VERSION if not specified otherwise.

Traits

Trait that is implemented automatically on all Database handlers.

Async trait that is implemented automatically on the database handler struct by mongo_db.

Trait that is implemented automatically on each collection struct by mongo_db.