| id | ParseWhereOptions |
|---|---|
| title | ParseWhereOptions |
Defined in: packages/db/src/query/expression-helpers.ts:53
Options for customizing how WHERE expressions are parsed
T = any
handlers: object & object;Defined in: packages/db/src/query/expression-helpers.ts:67
Handler functions for different operators. Each handler receives the parsed field path(s) and value(s) and returns your custom format.
Supported operators from TanStack DB:
- Comparison: eq, gt, gte, lt, lte, in, like, ilike
- Logical: and, or, not
- Null checking: isNull, isUndefined
- String functions: upper, lower, length, concat
- Numeric: add
- Utility: coalesce
- Aggregates: count, avg, sum, min, max
optional add: (...args) => T;...any[]
T
optional and: (...args) => T;...any[]
T
optional avg: (...args) => T;...any[]
T
optional coalesce: (...args) => T;...any[]
T
optional concat: (...args) => T;...any[]
T
optional count: (...args) => T;...any[]
T
optional eq: (...args) => T;...any[]
T
optional gt: (...args) => T;...any[]
T
optional gte: (...args) => T;...any[]
T
optional ilike: (...args) => T;...any[]
T
optional in: (...args) => T;...any[]
T
optional isNull: (...args) => T;...any[]
T
optional isUndefined: (...args) => T;...any[]
T
optional length: (...args) => T;...any[]
T
optional like: (...args) => T;...any[]
T
optional lower: (...args) => T;...any[]
T
optional lt: (...args) => T;...any[]
T
optional lte: (...args) => T;...any[]
T
optional max: (...args) => T;...any[]
T
optional min: (...args) => T;...any[]
T
optional not: (...args) => T;...any[]
T
optional or: (...args) => T;...any[]
T
optional sum: (...args) => T;...any[]
T
optional upper: (...args) => T;...any[]
T
optional onUnknownOperator: (operator, args) => T;Defined in: packages/db/src/query/expression-helpers.ts:76
Optional handler for when an unknown operator is encountered. If not provided, unknown operators throw an error.
string
any[]
T