@jakub.knejzlik/ts-query
Version:
TypeScript implementation of SQL builder
19 lines (17 loc) • 629 B
text/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;
}