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

Method schema_for_table

crates/engine/src/sql/ast.rs:36–43  ·  view source on GitHub ↗
(&self, table_id: TableId)

Source from the content-addressed store, hash-verified

34 }
35
36 fn schema_for_table(&self, table_id: TableId) -> Option<Arc<TableOrViewSchema>> {
37 self.tx
38 .get_schema(table_id)
39 .filter(|schema| self.auth.has_read_access(schema.table_access))
40 .map(Arc::clone)
41 .map(TableOrViewSchema::from)
42 .map(Arc::new)
43 }
44
45 fn rls_rules_for_table(&self, table_id: TableId) -> anyhow::Result<Vec<Box<str>>> {
46 self.tx

Callers 2

build_row_level_exprMethod · 0.45
table_idMethod · 0.45

Calls 4

has_read_accessMethod · 0.80
filterMethod · 0.65
mapMethod · 0.45
get_schemaMethod · 0.45

Tested by

no test coverage detected