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

Function escapeIdentity

src/drivers/sqlite/sql-helper.ts:5–7  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

3import { ColumnType } from "@outerbase/sdk-transform";
4
5export function escapeIdentity(str: string) {
6 return `"${str.replace(/"/g, `""`)}"`;
7}
8
9export function unescapeIdentity(str: string) {
10 let r = str.replace(/^["`[]/g, "");

Callers 6

exportRowsToSqlInsertFunction · 0.90
createTriggerMethod · 0.90
generateCreateColumnFunction · 0.90
generateConstraintScriptFunction · 0.90
generateSqlSchemaChangeFunction · 0.90
sql-helper.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected