Crate rorm

source ·
Expand description

Rorm is the rust implementation of the drorm project.

Re-exports

pub use internal::field::back_ref::BackRef;
pub use internal::field::foreign_model::ForeignModel;
pub use model::Model;
pub use model::Patch;

Modules

Aggregation functions
Implementation of a aggregator functions
This module defines the conditional statements
A high-level generic condition tree
This modules holds the definition of the configuration used by [rorm-cli]
This module holds the CRUD interface.
This module defines the main API wrapper.
Error type to simplify propagating different error types.
This module defines a wrapper for sqlx’s Executor
This module holds the internal model representation The Internal Model Representation used by our migration cli tool
This module is not considered public api.
Implementation of JOIN statements
Implementation of limit clauses
This module holds traits and structs for working with models
Implementation of ORDER BY expressions
This module defines a wrapper for sqlx’s AnyRow
Implementation of identifiers in select queries
This module holds the definition of transactions
Implementation of supported datatypes

Macros

Combine several Conditions into a single one using “AND”.
Create a DELETE query.
Create an INSERT query.
Combine several Conditions into a single one using “OR”.
Create a SELECT query.
Put this macro inside a trait to seal it i.e. prevent extern implementations.
Create a UPDATE query.

Structs

Main API wrapper.
Configuration to create a database connection.
Represents a single row from the database.

Enums

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

Functions

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 all models in the Intermediate Model Representation to a writer.

Attribute Macros

This attribute is put on your main function.

Derive Macros

This attribute is used to turn a struct into a database model.