MCPcopy Index your code
hub / github.com/BuilderIO/agent-native / normalizePostgresSql

Function normalizePostgresSql

packages/core/src/scripts/db/query.ts:118–121  ·  view source on GitHub ↗
(sql: string, args: unknown[])

Source from the content-addressed store, hash-verified

116}
117
118function normalizePostgresSql(sql: string, args: unknown[]): string {
119 if (args.length === 0 || /\$\d+\b/.test(sql)) return sql;
120 return convertQuestionMarksToPostgresParams(sql);
121}
122
123function printTable(
124 rows: Record<string, unknown>[],

Callers 1

dbQueryFunction · 0.70

Tested by

no test coverage detected