@devbro/sql-generator
Version:
generic sql generator
18 lines (15 loc) • 793 B
text/typescript
import { Blueprint, Column } from './Blueprint.mjs';
import { P as Parameter, C as CompiledSql } from './types-C_aDrXJN.mjs';
declare class SchemaGrammar {
toSql(blueprint: Blueprint): string;
compileColumn(column: Column): string;
escape(value: Parameter): string;
compilePrimaryKeys(primaryKeys: string[]): string;
compileTables(schema?: string | string[] | undefined): CompiledSql;
compileTableExists(tableName: string, schema?: string): CompiledSql;
compileDropTable(tableName: string): CompiledSql;
protected compileSchemaWhereClause(schema: string | string[] | undefined, column: string): string;
protected quoteString(value: string | string[]): string;
protected doubleQuoteString(value: string | string[]): string;
}
export { SchemaGrammar };