MCPcopy Create free account
hub / github.com/PostHog/duckgres / quoteSQLStringLiteral

Function quoteSQLStringLiteral

server/sessionmeta/sessionmeta.go:910–912  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

908func buildSessionInformationSchemaTablesViewSQL(access *MetadataAccessPolicy) string {
909 sql := `
910 CREATE OR REPLACE VIEW main.information_schema_tables_compat AS
911 SELECT
912 CASE WHEN t.table_catalog IN ('ducklake', 'memory') THEN current_database() ELSE t.table_catalog END AS table_catalog,
913 CASE WHEN t.table_schema = 'main' THEN 'public' ELSE t.table_schema END AS table_schema,
914 t.table_name,
915 t.table_type,

Callers 3

HasAttachedCatalogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected