@jakub.knejzlik/ts-query
Version:
TypeScript implementation of SQL builder
22 lines (21 loc) • 916 B
TypeScript
import { ExpressionRawValue, ExpressionValue, FunctionExpression, OperationExpression } from "../Expression";
import { ISQLFlavor } from "../Flavor";
import { UnionType } from "../Query";
type FlavorOptions = {
timezone?: string;
};
export declare class DefaultFlavor implements ISQLFlavor {
options?: FlavorOptions;
protected columnQuotes: string;
protected stringQuotes: string;
constructor(options?: FlavorOptions);
escapeColumn(name: string, legacyParsing?: 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;
}
export {};