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

Function whereClause

packages/infra/src/Store/SQL/query.ts:422–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420 }
421 const filter = "filter" in computed ? computed.filter : []
422 const whereClause = () =>
423 filter.length > 0
424 ? ` WHERE ${print(filter, computed.path, false)}`
425 : ""
426 const boolExpr = (sqlExpr: string) =>
427 dialect.jsonColumnType === "JSON"
428 ? `CASE WHEN ${sqlExpr} THEN 'true' ELSE 'false' END AS "${key}"`

Callers 1

computedSelectExprFunction · 0.85

Calls 1

printFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…