Skip to main content

getExpressionParserSQL()

getExpressionParserSQL(customInverse?: Partial<SQLInverse>, customMeta?: ExpressionFunctionMetaRegistry): SQLExpressionParser

Defined in: expr/src/parsers/getExpressionParserSQL.ts:33

Generates a getExpression handler for @react-querybuilder/core/parseSQL!parseSQL. Pass customInverse to add functions/operators or override built-ins (merged over defaultSQLInverse), and customMeta to supply arity metadata for custom functions. The returned handler builds an ExpressionNode from a SQL operand subtree and auto-validates it, returning null (rule dropped) for unknown functions/operators or arity mismatches — the import-side mirror of getExpressionRuleProcessorSQL.

Parameters

ParameterType
customInverse?Partial<SQLInverse>
customMeta?ExpressionFunctionMetaRegistry

Returns

SQLExpressionParser


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.