MCPcopy Create free account
hub / github.com/4xmen/rustavel / has_column

Method has_column

core/src/sql/sqlite.rs:85–95  ·  view source on GitHub ↗
(&self, table_name: &str, column_name: &str)

Source from the content-addressed store, hash-verified

83 // }
84
85 fn has_column(&self, table_name: &str, column_name: &str) -> String {
86 format!(
87 "
88 SELECT \"1\"
89 FROM pragma_table_info(\"{}\")
90 WHERE name = '{}'
91 LIMIT 1
92 ",
93 table_name, column_name
94 )
95 }
96
97 fn has_table(&self, table_name: &str) -> String {
98 format!(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected