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

Method table

crates/schema/src/def.rs:335–338  ·  view source on GitHub ↗

Convenience method to look up a table, possibly by a string.

(&self, name: &K)

Source from the content-addressed store, hash-verified

333
334 /// Convenience method to look up a table, possibly by a string.
335 pub fn table<K: ?Sized + Hash + Equivalent<Identifier>>(&self, name: &K) -> Option<&TableDef> {
336 // If the string IS a valid identifier, we can just look it up.
337 self.tables.get(name)
338 }
339
340 /// Convenience method to look up a view, possibly by a string.
341 pub fn view<K: ?Sized + Hash + Equivalent<Identifier>>(&self, name: &K) -> Option<&ViewDef> {

Callers 7

validate_system_tableFunction · 0.45
st_schemaFunction · 0.45
extract_table_infoFunction · 0.45
extract_column_changesFunction · 0.45
extract_new_columnsFunction · 0.45
tableFunction · 0.45

Calls 1

getMethod · 0.45

Tested by 1

tableFunction · 0.36