defaultRuleGroupProcessorDrizzle
const
defaultRuleGroupProcessorDrizzle:RuleGroupProcessor
<(columns
:Record
<string
,Column
> |Table
,drizzleOperators
:Operators
) =>SQL
|undefined
>
Defined in: packages/react-querybuilder/src/utils/formatQuery/defaultRuleGroupProcessorDrizzle.ts:21
Default rule group processor used by formatQuery for the "drizzle" format. The returned
function can be assigned to the where
property in the Drizzle relational queries API.
Example
const where = formatQuery(query, 'drizzle');
const results = db.query.users.findMany({ where });
Returns
Function that takes a Drizzle table config and an object of Drizzle operators.
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.