Skip to main content

doido_model/
lib.rs

1pub use sea_orm;
2pub use sea_orm::{
3    ActiveModelTrait, ColumnTrait, DatabaseConnection, EntityTrait, ModelTrait, QueryFilter, Set,
4};
5pub use sea_orm_migration;
6pub use sea_orm_migration::SchemaManager;
7
8pub mod config;
9pub mod create;
10pub mod environment;
11pub mod migration;
12pub mod pool;
13pub mod testing;
14
15pub use config::{Config, DatabaseConfig, LoggerConfig, YamlConfig};
16pub use create::create_database;
17pub use environment::Environment;
18pub use pool::{connect, connect_with_url};
19
20// Rails-style migration helpers: create_table, alter_table, add_column, …
21pub use migration::{
22    add_column, add_foreign_key, add_index, alter_table, create_table, drop_table, remove_column,
23    remove_foreign_key, remove_index, rename_column, rename_table, AlterTableBuilder, TableBuilder,
24};