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

Function toNumber

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

Source from the content-addressed store, hash-verified

402 const relationAlias = `_${computed.path}`
403 const relationFrom = dialect.jsonEachFrom(relationPath, relationAlias)
404 const toNumber = (expr: string) =>
405 dialect.jsonColumnType === "JSON" ? `CAST(${expr} AS REAL)` : `(${expr})::numeric`
406 const compileExpr = (expression: ComputedProjectionMathIrExpression): string => {
407 switch (expression._tag) {
408 case "field":

Callers 2

compileExprFunction · 0.70
computedSelectExprFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…