Skip to main content

Crate mool

Crate mool 

Source

Re-exports§

pub use enums::SqlEnum;
pub use enums::SqlEnumError;
pub use enums::SqlEnumStorage;
pub use enums::SqlSchemaBuilder;
pub use enums::schema;
pub use filters::FilterBuilder;
pub use filters::Filterable;
pub use queries::DbExpression;
pub use queries::DbFunction;
pub use queries::Expr;
pub use queries::ExprRenderCtx;
pub use queries::FunctionArgs;
pub use queries::ParamSource;
pub use queries::ParamSpec;
pub use queries::QueryPlan;
pub use queries::SourceKind;
pub use queries::SourceMeta;
pub use queries::backref;
pub use queries::from;
pub use queries::funcs;
pub use queries::many_to_many;
pub use queries::meta;
pub use queries::out;
pub use queries::val;
pub use queries::var;
pub use relations::Backref;
pub use relations::JoinColumn;
pub use relations::JoinCtx;
pub use relations::JoinRelation;
pub use relations::JoinType;
pub use relations::ManyBackref;
pub use relations::ManyToMany;
pub use relations::OneBackref;
pub use relations::Prefetch;
pub use relations::PrefetchKey;
pub use relations::ReceivesPrefetch;
pub use relations::ReferenceMeta;
pub use relations::RelationCardinality;
pub use relations::prefetch;

Modules§

enums
SQL enum mapping support.
filters
Typed WHERE-filter support for source-first database queries.
mock
queries
Source-first SQL AST for typed query construction.
relations
Typed database relation metadata and explicit relation loading.
types
Database expression marker types.

Macros§

embedded_migrations
Embed .yaml migrations from a directory at compile time. Returns an EmbeddedMigrations value carrying both the compiled-in files and the absolute source directory path, so the runtime can validate against config.migrations_dir.

Structs§

ArgValue
Column
ColumnDesc
Resolved SQL type and nullability for one column.
ColumnRef
Inline foreign-key reference declared on a column.
DbConf
DbPool
DbTransaction
EmbeddedMigrations
FunctionDef
Index
MigrationRegistry
Registry for crate-owned migration sources discovered through bundles.
MigrationSource
A crate-level migration history registered through a bundle.
ModelSchema
Fluent metadata descriptor for a Model.
Page
A page of results from a paginated query.
RawQuery
Builder for raw SQL with Vyuh named-bind support.
RecordSchema
Fluent metadata descriptor for a Record.
Schema
SchemaBuilder
SchemaSource
A schema contribution associated with a migration namespace.
Statement
SQL text and database arguments ready for execution.
Table
TableBuilder

Enums§

Constraint
DbError
Dialect
Database dialect selection and dialect-specific behavior.
IntegrityKind
LockMode
Row locking mode for SELECT … FOR UPDATE / FOR SHARE.
MigrationError
Errors raised while registering or executing migrations.
QueryError
Error raised while planning or rendering a database query.
SchemaLoadError

Traits§

ColumnType
Map a Rust type to a SQL column description. Implement this for your own types, or use #[column(type = "...")] per field.
DBSession
IntoTable
Map a Rust type to a table definition.
Model
Table-backed database record with schema and primary-key metadata.
Record
Reusable database row/value shape.

Functions§

crate_migration
Register a crate migration history under a virtual namespace.
crate_schema
Register a crate schema contribution under a virtual namespace.
query
Start a raw SQL query with named-bind support.
root_migration
Register the root application migration history.
root_schema
Register a root schema contribution.

Type Aliases§

Arguments
Database
Pool
QueryResult
Row

Attribute Macros§

test_db

Derive Macros§

Filterable
Model
Record
SqlEnum