Skip to main content

Crate rango_orm_core

Crate rango_orm_core 

Source
Expand description

Database-free core of Rango ORM: model traits, schema and field types.

Internal crate: depend on rango-orm, which re-exports it.

Re-exports§

pub use column::Column;
pub use column::ColumnRef;
pub use column::FilterColumn;
pub use column::FilterValue;
pub use column::ForeignKeyRef;
pub use column::ManyToManyField;
pub use column::OrderRef;
pub use column::Ordering;
pub use column::PrefetchKind;
pub use column::PrefetchRef;
pub use config::BackendKind;
pub use config::DatabaseConfig;
pub use constraints::CheckConstraint;
pub use constraints::Constraint;
pub use constraints::IndexDef;
pub use constraints::OrderBy;
pub use constraints::OrderDir;
pub use constraints::UniqueConstraint;
pub use constraints::asc;
pub use constraints::desc;
pub use error::Error;
pub use error::Result;
pub use hooks::BoxFuture;
pub use hooks::HookResult;
pub use hooks::ModelHooks;
pub use model::Model;
pub use model::ModelMixin;
pub use model::PrimaryKey;
pub use model::PrimaryKeyField;
pub use model::UnsupportedPk;
pub use query::Filterable;
pub use query::ModelValues;
pub use query::SqlValue;
pub use query::ToSqlValue;
pub use query::quote_ident;
pub use query::quote_ident_mysql;
pub use related::WithRelated;
pub use row::FromRow;
pub use row::Partial;
pub use row::RangoRow;
pub use row::RowError;
pub use schema::ColumnDef;
pub use schema::ColumnType;
pub use schema::DefaultValue;
pub use schema::FkReference;
pub use schema::ReferentialAction;
pub use schema::TableSchema;
pub use fields::*;

Modules§

column
Column and ordering types for Rango ORM.
config
constraints
error
Typed errors returned by every Rango operation.
fields
hooks
model
query
related
Relation cache shared by the backends (select_related / prefetch_related).
row
schema

Structs§

Decimal
Decimal represents a 128 bit representation of a fixed-precision decimal number. The finite set of values of type Decimal are of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.