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

Method table_schema

crates/expr/src/statement.rs:44–50  ·  view source on GitHub ↗

Returns the schema of the table on which this mutation applies

(&self)

Source from the content-addressed store, hash-verified

42impl DML {
43 /// Returns the schema of the table on which this mutation applies
44 pub fn table_schema(&self) -> &TableOrViewSchema {
45 match self {
46 Self::Insert(insert) => &insert.table,
47 Self::Delete(delete) => &delete.table,
48 Self::Update(update) => &update.table,
49 }
50 }
51
52 /// Returns the id of the table on which this mutation applies
53 pub fn table_id(&self) -> TableId {

Callers 2

table_idMethod · 0.45
table_nameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected