Crate vorm

Source
Expand description

Wrapper for database query and mutation.

Uses MongoDB, and implements an abstraction layer to make resource modeling less painful.

You’re advised to implement Clone, Debug, serde::Deserialize, and serde::Serialize, in the struct defining your data model, before implementing abstractions.

Structs§

Records
Represent common collection of a generic type of model.

Traits§

AsDocument
Convenience trait for serializing a struct into a document.
FromDocument
Convenience trait for deserializing a document into a struct.

Functions§

get_db
Get database through client initialized with given URI.