Re-exports§
pub use config::Config;pub use config::DatabaseConfig;pub use config::YamlConfig;pub use create::create_database;pub use environment::Environment;pub use pool::connect;pub use pool::connect_with_url;pub use migration::add_column;pub use migration::add_foreign_key;pub use migration::add_index;pub use migration::alter_table;pub use migration::create_table;pub use migration::drop_table;pub use migration::remove_column;pub use migration::remove_foreign_key;pub use migration::remove_index;pub use migration::rename_column;pub use migration::rename_table;pub use migration::AlterTableBuilder;pub use migration::TableBuilder;pub use sea_orm;pub use sea_orm::Set;pub use sea_orm_migration;
Modules§
- config
- Per-environment database configuration loaded from
config/<env>.yml. - create
- Database creation, backing
doido db create. - environment
- Runtime environment selection, driven by the
DOIDO_ENVvariable. - migration
- Rails-style schema migration helpers.
- pool
- Database connections backed by the model
config. - testing
Structs§
- Database
Connection - A handle to a database — implements
ConnectionTraitandTransactionTraitso it works with every query and mutation method in SeaORM. - Logger
Config - Re-exported so
config::LoggerConfigresolves; the logger config lives indoido-corealongside the logger it drives. The model layer reads it for thesqltoggle (whether sea-orm logs each statement). Logging settings, deserialized from theloggersection ofconfig/<env>.yml. - Schema
Manager - Helper struct for writing migration scripts in migration file
Traits§
- Active
Model Trait - The editable counterpart of a
Model, used to buildINSERTandUPDATEstatements. - Column
Trait - Operations and comparisons available on every entity column.
- Entity
Trait - The contract every SeaORM entity implements — a static description of a table plus the CRUD entry points used to query it.
- Model
Trait - The interface implemented by every Model — an instance of an
EntityTrait, roughly an OOP “object” whose fields are the table’s columns. - Query
Filter - Methods for adding
WHERE/AND/ORconditions to a query. The entry point most code uses isfilter.