Crate mongodb_ext

Source
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§

mongo_db
Model a mongodb database.

Structs§

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

Constants§

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

Traits§

GridFSDb
Trait that is implemented automatically on all Database handlers.
MongoClient
Async trait that is implemented automatically on the database handler struct by [mongo_db].
MongoCollection
Trait that is implemented automatically on each collection struct by [mongo_db].