@jakub.knejzlik/ts-query
Version:
TypeScript implementation of SQL builder
13 lines (12 loc) • 635 B
TypeScript
import { ExpressionRawValue, ExpressionValue, FunctionExpression, OperationExpression } from "./Expression";
import { UnionType } from "./Query";
export interface ISQLFlavor {
escapeColumn(name: string, legacy?: boolean): string;
escapeTable(table: string): string;
escapeRawValue(value: ExpressionRawValue): string;
escapeValue(value: ExpressionValue): string;
escapeLimitAndOffset(limit?: number, offset?: number): string;
escapeFunction(fn: FunctionExpression): string;
escapeOperation(fn: OperationExpression): string;
escapeUnion(unionType: UnionType, leftSQL: string, rightSQL: string): string;
}