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

Function private_table_names

crates/codegen/src/util.rs:153–160  ·  view source on GitHub ↗

Return the names of all private tables, in alphabetical order.

(module: &ModuleDef)

Source from the content-addressed store, hash-verified

151
152/// Return the names of all private tables, in alphabetical order.
153pub fn private_table_names(module: &ModuleDef) -> Vec<String> {
154 module
155 .tables()
156 .filter(|table| table.table_access == TableAccess::Private)
157 .sorted_by_key(|table| &table.name)
158 .map(|table| table.name.to_string())
159 .collect()
160}
161
162/// Iterate over all the [`ViewDef`]s defined by the module, in alphabetical order by name.
163///

Callers 1

Calls 5

filterMethod · 0.65
collectMethod · 0.45
mapMethod · 0.45
tablesMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…