MCPcopy Index your code
hub / github.com/Effect-TS/effect / defaultEscape

Function defaultEscape

packages/sql/src/internal/statement.ts:839–846  ·  view source on GitHub ↗
(c: string)

Source from the content-addressed store, hash-verified

837
838/** @internal */
839export function defaultEscape(c: string) {
840 const re = new RegExp(c, "g")
841 const double = c + c
842 const dot = c + "." + c
843 return function(str: string) {
844 return c + str.replace(re, double).replace(/\./g, dot) + c
845 }
846}
847
848/** @internal */
849export const primitiveKind = (value: unknown): Statement.PrimitiveKind => {

Callers 1

statement.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…