Crate rorm

Source
Expand description

Re-exports§

pub use crate::model::Model;
pub use crate::model::Patch;
pub use crate::crud::delete::delete;
pub use crate::crud::insert::insert;
pub use crate::crud::query::query;
pub use crate::crud::update::update;

Modules§

clicli
Re-export of rorm-cli
conditions
A high-level generic condition tree
config
Re-exported for use in parser structs of user This modules holds the definition of the configuration used by [rorm-cli]
crud
This module holds the CRUD interface.
db
Re-export of rorm-db
fields
All types valid as model fields and traits to make them valid.
internal
This module is not considered public api.
model
This module holds traits and structs for working with models
prelude
A prelude of common types, traits and derive macros that are used by rorm

Macros§

and
Combine several Conditions into a single one using “AND”.
const_fn
Converts a normal function into a ConstFn.
field
Get the type for a model’s field
impl_FieldMin_FieldMax
Implements FieldMin and FieldMax for its argument T and Option<T>.
impl_FieldSum_FieldAvg
Implements FieldSum and FieldAvg for its argument T and Option<T>
or
Combine several Conditions into a single one using “OR”.
sealed
Put this macro inside a trait to seal it i.e. prevent extern implementations.

Structs§

Database
Handle to a pool of database connections
DatabaseConfiguration
Configuration use in Database::connect.
Row
Represents a single row from the database.

Enums§

DatabaseDriver
The representation of all supported DB drivers
Error
Error type to simplify propagating different error types.

Functions§

print_models
Prints all models in the Intermediate Model Representation to stdout. This should be used as a main function to produce the file for the migrator.
write_models
Write all models in the Intermediate Model Representation to a writer.

Attribute Macros§

rorm_main
This attribute is put on your main function.

Derive Macros§

DbEnum
Model
Patch