MCPcopy Create free account
hub / github.com/douglance/devsql / get_tables_by_category

Function get_tables_by_category

crates/vcsql/src/sql/schema.rs:1116–1122  ·  view source on GitHub ↗

Groups tables by their category. Returns a map from category name to list of tables in that category.

()

Source from the content-addressed store, hash-verified

1114///
1115/// Returns a map from category name to list of tables in that category.
1116pub fn get_tables_by_category() -> HashMap<&'static str, Vec<&'static TableInfo>> {
1117 let mut map: HashMap<&'static str, Vec<&'static TableInfo>> = HashMap::new();
1118 for table in TABLES {
1119 map.entry(table.category).or_default().push(table);
1120 }
1121 map
1122}

Callers 1

show_tablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected