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

Function query_mentions_table

crates/devsql/src/engine.rs:754–759  ·  view source on GitHub ↗
(query_upper: &str, table_name: &str)

Source from the content-addressed store, hash-verified

752}
753
754fn query_mentions_table(query_upper: &str, table_name: &str) -> bool {
755 let table_upper = table_name.to_uppercase();
756 query_upper
757 .split(|c: char| !c.is_ascii_alphanumeric() && c != '_')
758 .any(|token| token == table_upper)
759}
760
761/// Detect which tables are needed from a SQL query.
762///

Callers 1

detect_tablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected