MCPcopy Index your code
hub / github.com/PostHog/posthog / getFinalPostgresQuery

Function getFinalPostgresQuery

plugin-server/src/utils/db/utils.ts:109–111  ·  view source on GitHub ↗
(queryString: string, values: any[])

Source from the content-addressed store, hash-verified

107
108// Very useful for debugging queries
109export function getFinalPostgresQuery(queryString: string, values: any[]): string {
110 return queryString.replace(/\$([0-9]+)/g, (m, v) => JSON.stringify(values[parseInt(v) - 1]))
111}
112
113export function shouldStoreLog(
114 pluginLogLevel: PluginLogLevel,

Callers 1

postgresQueryMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…