MCPcopy Create free account
hub / github.com/effect-app/libs / normalizeSql

Function normalizeSql

repos/effect/packages/sql/sqlite-do/test/Client.test.ts:150–150  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

148}
149
150const normalizeSql = (sql: string) => sql.replace(/;$/, "").replace(/\s+/g, " ").trim()
151
152const unquote = (value: string) => value.replace(/^"|"$/g, "")
153

Callers 2

execMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…