import { MigrationMeta } from 'drizzle-orm/migrator'; import { Query, SQL } from 'drizzle-orm/sql'; import { PgDeleteConfig, PgInsertConfig, PgUpdateConfig, PgUpdateSet } from './query-builders'; import { PgSelectConfig } from './query-builders/select.types'; import { AnyPgTable } from './table'; import { PgSession } from './session'; export declare class PgDialect { migrate(migrations: MigrationMeta[], session: PgSession): Promise; escapeName(name: string): string; escapeParam(num: number): string; buildDeleteQuery({ table, where, returning }: PgDeleteConfig): SQL; buildUpdateSet(table: AnyPgTable, set: PgUpdateSet): SQL; buildUpdateQuery({ table, set, where, returning }: PgUpdateConfig): SQL; /** * Builds selection SQL with provided fields/expressions * * Examples: * * `select from` * * `insert ... returning ` * * If `isSingleTable` is true, then columns won't be prefixed with table name */ private buildSelection; buildSelectQuery({ fields, where, table, joins, orderBy, groupBy, limit, offset }: PgSelectConfig): SQL; buildInsertQuery({ table, values, onConflict, returning }: PgInsertConfig): SQL; sqlToQuery(sql: SQL): Query; } //# sourceMappingURL=dialect.d.ts.map