StringExprConfig
Defined in: expr/src/utils/stringExprProcessor.ts:40
Configuration for a string-output ("infix") expression rule processor. Describes how to
render each supported operator category around already-serialized lhs/rhs fragments,
plus the InfixDialect used to serialize the expression trees themselves.
Properties
compare
compare:
Record<string,string>
Defined in: expr/src/utils/stringExprProcessor.ts:48
Maps a canonical scalar operator (=, !=, …) to this format's operator token.
dialect
dialect:
InfixDialect
Defined in: expr/src/utils/stringExprProcessor.ts:44
Field/leaf renderers for the expression walker.
fallback
fallback:
RuleProcessor
Defined in: expr/src/utils/stringExprProcessor.ts:46
Stock rule processor to fall back to (no expressions, or unsupported operator).
renderBetween
renderBetween: (
lhs:string,from:string,to:string,negate:boolean) =>string
Defined in: expr/src/utils/stringExprProcessor.ts:54
Renders a between (or negated notBetween) range check.
Parameters
| Parameter | Type |
|---|---|
lhs | string |
from | string |
to | string |
negate | boolean |
Returns
string
renderNull
renderNull: (
lhs:string,notNull:boolean) =>string
Defined in: expr/src/utils/stringExprProcessor.ts:52
Renders a null / not-null check.
Parameters
| Parameter | Type |
|---|---|
lhs | string |
notNull | boolean |
Returns
string
renderScalar?
optionalrenderScalar?: (lhs:string,op:string,rhs:string) =>string
Defined in: expr/src/utils/stringExprProcessor.ts:50
Renders lhs <op> rhs. Defaults to `${lhs} ${op} ${rhs}`.
Parameters
| Parameter | Type |
|---|---|
lhs | string |
op | string |
rhs | string |
Returns
string
renderStringMatch
renderStringMatch: (
kind:StringMatchKind,negate:boolean,lhs:string,rhs:string) =>string
Defined in: expr/src/utils/stringExprProcessor.ts:59
Renders a string-match op (contains/beginsWith/endsWith and their negations)
around serialized lhs/rhs fragments.
Parameters
| Parameter | Type |
|---|---|
kind | StringMatchKind |
negate | boolean |
lhs | string |
rhs | string |
Returns
string
serializers
serializers:
SQLSerializerRegistry
Defined in: expr/src/utils/stringExprProcessor.ts:42
Built-in serializers for this format (merged under caller overrides).
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.