MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / create_table

Method create_table

crates/engine/src/relational_db.rs:1138–1140  ·  view source on GitHub ↗
(&self, tx: &mut MutTx, schema: TableSchema)

Source from the content-addressed store, hash-verified

1136}
1137impl RelationalDB {
1138 pub fn create_table(&self, tx: &mut MutTx, schema: TableSchema) -> Result<TableId, DBError> {
1139 Ok(self.inner.create_table_mut_tx(tx, schema)?)
1140 }
1141
1142 pub fn drop_table(&self, tx: &mut MutTx, table_id: TableId) -> Result<(), DBError> {
1143 let table_name = self

Callers 15

create_table_with_rowsFunction · 0.45
auto_migrate_databaseFunction · 0.45
create_table_from_defFunction · 0.45
create_backing_tableFunction · 0.45
migrate_system_tablesMethod · 0.45
testFunction · 0.45
test_open_twiceFunction · 0.45
test_table_nameFunction · 0.45
test_column_nameFunction · 0.45
test_pre_commitFunction · 0.45

Calls 2

create_table_mut_txMethod · 0.80
OkFunction · 0.50

Tested by 15

testFunction · 0.36
test_open_twiceFunction · 0.36
test_table_nameFunction · 0.36
test_column_nameFunction · 0.36
test_pre_commitFunction · 0.36
test_post_commitFunction · 0.36
test_rollbackFunction · 0.36
test_auto_incFunction · 0.36