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

Method table_id

crates/expr/src/rls.rs:498–505  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

496
497 impl SchemaView for SchemaViewer {
498 fn table_id(&self, name: &str) -> Option<TableId> {
499 match name {
500 "users" => Some(TableId(0)),
501 "admins" => Some(TableId(1)),
502 "player" => Some(TableId(2)),
503 _ => None,
504 }
505 }
506
507 fn schema_for_table(&self, table_id: TableId) -> Option<Arc<TableOrViewSchema>> {
508 match table_id.idx() {

Callers

nothing calls this directly

Calls 1

TableIdClass · 0.50

Tested by

no test coverage detected