Expand description
Rorm is a rust orm.
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§
- cli
cli
- 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_
Field Min_ Field Max - Implements
FieldMin
andFieldMax
for its argumentT
andOption<T>
. - impl_
Field Sum_ Field Avg - Implements
FieldSum
andFieldAvg
for its argumentT
andOption<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
- Database
Configuration - Configuration use in
Database::connect
. - Row
- Represents a single row from the database.
Enums§
- Database
Driver - 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.