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

Function escapeSqlString

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

Source from the content-addressed store, hash-verified

14}
15
16export function escapeSqlString(str: string) {
17 return `'${str.replace(/'/g, `''`)}'`;
18}
19
20export function escapeSqlBinary(value: ArrayBuffer) {
21 return `x'${hex(value)}'`;

Callers 2

sql-helper.test.tsFile · 0.90
escapeSqlValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected