MCPcopy Create free account
hub / github.com/TanStack/db / isNullValue

Function isNullValue

packages/powersync-db-collection/src/sqlite-compiler.ts:161–163  ·  view source on GitHub ↗

* Check if a BasicExpression represents a null/undefined value

(exp: IR.BasicExpression<unknown>)

Source from the content-addressed store, hash-verified

159 * Check if a BasicExpression represents a null/undefined value
160 */
161function isNullValue(exp: IR.BasicExpression<unknown>): boolean {
162 return exp.type === `val` && (exp.value === null || exp.value === undefined)
163}
164
165/**
166 * Compiles a function expression (operator) to SQL.

Callers 1

compileFunctionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected