json-to-sql-parser
Version:
A TypeScript library that converts JSON-based query specifications into safe SQL queries
12 lines • 535 B
TypeScript
import { Dialect } from "../constants/dialects";
import type { ExpressionType, FieldType } from "../constants/field-types";
export type AggregationDefinition = {
name: string;
expressionType: ExpressionType;
additionalArgumentTypes?: FieldType[];
variadic?: boolean;
toSQL?: (expression: string, args: string[], dialect: Dialect) => string;
};
export declare const aggregationFunctionNames: string[];
export declare const allowedAggregationFunctions: AggregationDefinition[];
//# sourceMappingURL=aggregate.d.ts.map