mongodm 0.9.2

A thin ODM layer for mongodb
Documentation

Crates.io docs.rs Crates.io

MongODM

A thin ODM layer for MongoDB built upon the official Rust driver.

Main features:

  • A stronger API leveraging Rust type system
  • Data structure models are defined using the well-known serde serialization framework
  • Index support on top of the Database::run_command (index management is currently not implemented in the underlying driver)
  • Indexes synchronization
  • Additional compile-time checks for queries using macros and type associated to mongo operators (eg: And instead of "$and")

Examples

See documentation.

Tests

Some tests can be run with cargo test however most of the useful tests requires a Mongo database running and exposed on localhost:27017. These integration tests are run with cargo test -- --ignored.

License