MCPcopy Create free account
hub / github.com/outerbase/studio / escapeId

Method escapeId

src/drivers/postgres/postgres-driver.ts:87–89  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

85 columnTypeSelector: ColumnTypeSelector = POSTGRES_DATA_TYPE_SUGGESTION;
86
87 escapeId(id: string) {
88 return `"${id.replace(/"/g, '""')}"`;
89 }
90
91 escapeValue(value: unknown): string {
92 return escapeSqlValue(value);

Callers 6

getCurrentSchemaMethod · 0.95
createViewMethod · 0.95
dropViewMethod · 0.95
generateCreateColumnFunction · 0.45
generateConstraintScriptFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected