MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / create_tables

Function create_tables

tests/partial_model_nested/local/model/schema.rs:6–10  ·  view source on GitHub ↗
(db: &DatabaseConnection)

Source from the content-addressed store, hash-verified

4use sea_query::{ColumnDef, ForeignKey, ForeignKeyAction, Index, Table};
5
6pub async fn create_tables(db: &DatabaseConnection) -> Result<(), DbErr> {
7 create_worker_table(db).await?;
8 create_bakery_table(db).await?;
9 Ok(())
10}
11
12pub async fn create_bakery_table(db: &DbConn) -> Result<ExecResult, DbErr> {
13 let stmt = Table::create()

Callers 1

Calls 2

create_worker_tableFunction · 0.85
create_bakery_tableFunction · 0.70

Tested by

no test coverage detected