UNPKG

@riao/dbal

Version:
54 lines (53 loc) 1.6 kB
import { DatabaseQueryOptions } from '../database/driver-query'; import { Builder } from './builder'; export declare class SqlBuilder extends Builder { protected sql: string; protected params: any[]; protected usePlaceholders: boolean; operators: { closeParens: string; openParens: string; endStatement: string; equals: string; like: string; notEqual: string; negate: string; lt: string; lte: string; gt: string; gte: string; and: string; or: string; null: string; is: string; in: string; between: string; openEnclosure: string; closeEnclosure: string; addition: string; subtraction: string; multiplication: string; division: string; modulo: string; }; toDatabaseQuery(): DatabaseQueryOptions; append(str: string): this; appendParams(params: any[]): void; space(): this; commaSeparate(strings: string[]): this; openParens(): this; closeParens(): this; trimEnd(s?: string): this; endStatement(): this; encloseString(str: string): string; getEnclosedName(str: string): string; tableName(name: string): this; columnName(name: string): this; enablePlaceholders(): this; disablePlaceholders(): this; appendPlaceholder(value: any): this; placeholder(value: any): this; appendValue(value: any): this; appendNull(): this; appendStringValue(value: string): this; }