MCPcopy Create free account
hub / github.com/erans/pgsqlite / preprocess_query

Function preprocess_query

src/query/executor.rs:33–39  ·  view source on GitHub ↗
(query: &str)

Source from the content-addressed store, hash-verified

31});
32
33fn preprocess_query(query: &str) -> String {
34 if PG_SHOW_ALL_SETTINGS_PATTERN.is_match(query) {
35 PG_SHOW_ALL_SETTINGS_PATTERN.replace_all(query, "pg_settings").to_string()
36 } else {
37 query.to_string()
38 }
39}
40
41/// Combined schema information for a table
42#[derive(Clone)]

Calls

no outgoing calls