(db: &DbConn)
| 318 | } |
| 319 | |
| 320 | pub 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 | |
| 335 | pub async fn create_json_vec_table(db: &DbConn) -> Result<ExecResult, DbErr> { |
| 336 | let create_table_stmt = sea_query::Table::create() |
no test coverage detected