UNPKG

@react-querybuilder/core

Version:

React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts

37 lines (35 loc) 1.52 kB
import { C as Except, d as DefaultRuleGroupTypeIC, g as DefaultRuleGroupType } from "./basic-B4vXboTG.mjs"; import { t as ParserCommonOptions } from "./import-Bc_p8ls9.mjs"; //#region src/utils/parseSQL/parseSQL.d.ts /** * Options object for {@link parseSQL}. */ interface ParseSQLOptions extends ParserCommonOptions { paramPrefix?: string; params?: any[] | Record<string, any>; } /** * Converts a SQL `SELECT` statement into a query suitable for the * {@link index!QueryBuilder QueryBuilder} component's `query` or `defaultQuery` props * ({@link index!DefaultRuleGroupType DefaultRuleGroupType}). */ declare function parseSQL(sql: string): DefaultRuleGroupType; /** * Converts a SQL `SELECT` statement into a query suitable for the * {@link index!QueryBuilder QueryBuilder} component's `query` or `defaultQuery` props * ({@link index!DefaultRuleGroupType DefaultRuleGroupType}). */ declare function parseSQL(sql: string, options: Except<ParseSQLOptions, "independentCombinators"> & { independentCombinators?: false; }): DefaultRuleGroupType; /** * Converts a SQL `SELECT` statement into a query suitable for the * {@link index!QueryBuilder QueryBuilder} component's `query` or `defaultQuery` props * ({@link index!DefaultRuleGroupType DefaultRuleGroupType}). */ declare function parseSQL(sql: string, options: Except<ParseSQLOptions, "independentCombinators"> & { independentCombinators: true; }): DefaultRuleGroupTypeIC; //#endregion export { ParseSQLOptions, parseSQL }; //# sourceMappingURL=parseSQL.d.mts.map