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

Function create_insert_default_table

tests/common/features/schema.rs:320–333  ·  view source on GitHub ↗
(db: &DbConn)

Source from the content-addressed store, hash-verified

318}
319
320pub async fn create_insert_default_table(db: &DbConn) -> Result<ExecResult, DbErr> {
321 let create_table_stmt = sea_query::Table::create()
322 .table(insert_default::Entity.table_ref())
323 .col(
324 ColumnDef::new(insert_default::Column::Id)
325 .integer()
326 .not_null()
327 .auto_increment()
328 .primary_key(),
329 )
330 .to_owned();
331
332 create_table(db, &create_table_stmt, InsertDefault).await
333}
334
335pub async fn create_json_vec_table(db: &DbConn) -> Result<ExecResult, DbErr> {
336 let create_table_stmt = sea_query::Table::create()

Callers 1

create_tablesFunction · 0.85

Calls 5

table_refMethod · 0.80
createFunction · 0.50
newFunction · 0.50
create_tableFunction · 0.50
auto_incrementMethod · 0.45

Tested by

no test coverage detected