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

Function sqlStringLiteral

packages/infra/src/Store/SQL/query.ts:152–152  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

150 const parts = arrPath.split(".")
151 const jsonPath = parts.length === 1
152 ? `data->'${parts[0]}'`
153 : `data${parts.map((p) => `->'${p}'`).join("")}`
154 return `jsonb_array_elements(${jsonPath}) AS ${alias}`
155 },

Callers 1

factorCaseExprFunction · 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…