wizard-ql
Version:
WizardQL is a natural-language-like query language for constructing data queries for resources that meet conditions.
10 lines (9 loc) • 362 B
TypeScript
import type { Knex } from 'knex';
import type { Expression } from './spec';
/**
* Execute a Wizard expression as a SQL query\
* This mutates the passed query
* @param query The Knex query to append conditions to
* @param expression The Wizard expression
*/
export declare function executeAsKnex(query: Knex.QueryBuilder, expression: Expression): void;