/// import { QueryRunner } from "../../query-runner/QueryRunner"; import { TableColumn } from "../../schema-builder/table/TableColumn"; import { Table } from "../../schema-builder/table/Table"; import { TableIndex } from "../../schema-builder/table/TableIndex"; import { TableForeignKey } from "../../schema-builder/table/TableForeignKey"; import { PostgresDriver } from "./PostgresDriver"; import { ReadStream } from "../../platform/PlatformTools"; import { TableUnique } from "../../schema-builder/table/TableUnique"; import { BaseQueryRunner } from "../../query-runner/BaseQueryRunner"; import { TableCheck } from "../../schema-builder/table/TableCheck"; export declare class PostgresQueryRunner extends BaseQueryRunner implements QueryRunner { driver: PostgresDriver; protected databaseConnectionPromise: Promise; protected releaseCallback: Function; constructor(driver: PostgresDriver, mode?: "master" | "slave"); connect(): Promise; release(): Promise; startTransaction(): Promise; commitTransaction(): Promise; rollbackTransaction(): Promise; query(query: string, parameters?: any[]): Promise; stream(query: string, parameters?: any[], onEnd?: Function, onError?: Function): Promise; getDatabases(): Promise; getSchemas(database?: string): Promise; hasDatabase(database: string): Promise; hasSchema(schema: string): Promise; hasTable(tableOrName: Table | string): Promise; hasColumn(tableOrName: Table | string, columnName: string): Promise; createDatabase(database: string, ifNotExist?: boolean): Promise; dropDatabase(database: string, ifExist?: boolean): Promise; createSchema(schema: string, ifNotExist?: boolean): Promise; dropSchema(schemaPath: string, ifExist?: boolean, isCascade?: boolean): Promise; createTable(table: Table, ifNotExist?: boolean, createForeignKeys?: boolean, createIndices?: boolean): Promise; dropTable(target: Table | string, ifExist?: boolean, dropForeignKeys?: boolean, dropIndices?: boolean): Promise; renameTable(oldTableOrName: Table | string, newTableName: string): Promise; addColumn(tableOrName: Table | string, column: TableColumn): Promise; addColumns(tableOrName: Table | string, columns: TableColumn[]): Promise; renameColumn(tableOrName: Table | string, oldTableColumnOrName: TableColumn | string, newTableColumnOrName: TableColumn | string): Promise; changeColumn(tableOrName: Table | string, oldTableColumnOrName: TableColumn | string, newColumn: TableColumn): Promise; changeColumns(tableOrName: Table | string, changedColumns: { newColumn: TableColumn; oldColumn: TableColumn; }[]): Promise; dropColumn(tableOrName: Table | string, columnOrName: TableColumn | string): Promise; dropColumns(tableOrName: Table | string, columns: TableColumn[]): Promise; createPrimaryKey(tableOrName: Table | string, columnNames: string[]): Promise; updatePrimaryKeys(tableOrName: Table | string, columns: TableColumn[]): Promise; dropPrimaryKey(tableOrName: Table | string): Promise; createUniqueConstraint(tableOrName: Table | string, uniqueConstraint: TableUnique): Promise; createUniqueConstraints(tableOrName: Table | string, uniqueConstraints: TableUnique[]): Promise; dropUniqueConstraint(tableOrName: Table | string, uniqueOrName: TableUnique | string): Promise; dropUniqueConstraints(tableOrName: Table | string, uniqueConstraints: TableUnique[]): Promise; createCheckConstraint(tableOrName: Table | string, checkConstraint: TableCheck): Promise; createCheckConstraints(tableOrName: Table | string, checkConstraints: TableCheck[]): Promise; dropCheckConstraint(tableOrName: Table | string, checkOrName: TableCheck | string): Promise; dropCheckConstraints(tableOrName: Table | string, checkConstraints: TableCheck[]): Promise; createForeignKey(tableOrName: Table | string, foreignKey: TableForeignKey): Promise; createForeignKeys(tableOrName: Table | string, foreignKeys: TableForeignKey[]): Promise; dropForeignKey(tableOrName: Table | string, foreignKeyOrName: TableForeignKey | string): Promise; dropForeignKeys(tableOrName: Table | string, foreignKeys: TableForeignKey[]): Promise; createIndex(tableOrName: Table | string, index: TableIndex): Promise; createIndices(tableOrName: Table | string, indices: TableIndex[]): Promise; dropIndex(tableOrName: Table | string, indexOrName: TableIndex | string): Promise; dropIndices(tableOrName: Table | string, indices: TableIndex[]): Promise; clearTable(tableName: string): Promise; clearDatabase(): Promise; protected loadTables(tableNames: string[]): Promise; protected createTableSql(table: Table, createForeignKeys?: boolean): string; protected extractSchema(target: Table | string): string | undefined; protected dropEnumTypes(schemaNames: string): Promise; protected hasEnumType(table: Table, column: TableColumn): Promise; protected createEnumTypeSql(table: Table, column: TableColumn, enumName?: string): string; protected dropEnumTypeSql(table: Table, column: TableColumn, enumName?: string): string; protected dropTableSql(tableOrPath: Table | string): string; protected createIndexSql(table: Table, index: TableIndex): string; protected dropIndexSql(table: Table, indexOrName: TableIndex | string): string; protected createPrimaryKeySql(table: Table, columnNames: string[]): string; protected dropPrimaryKeySql(table: Table): string; protected createUniqueConstraintSql(table: Table, uniqueConstraint: TableUnique): string; protected dropUniqueConstraintSql(table: Table, uniqueOrName: TableUnique | string): string; protected createCheckConstraintSql(table: Table, checkConstraint: TableCheck): string; protected dropCheckConstraintSql(table: Table, checkOrName: TableCheck | string): string; protected createForeignKeySql(table: Table, foreignKey: TableForeignKey): string; protected dropForeignKeySql(table: Table, foreignKeyOrName: TableForeignKey | string): string; protected buildSequenceName(table: Table, columnOrName: TableColumn | string, currentSchema?: string, disableEscape?: true, skipSchema?: boolean): string; protected buildEnumName(table: Table, columnOrName: TableColumn | string, withSchema?: boolean, disableEscape?: boolean, toOld?: boolean): string; protected escapeTableName(target: Table | string, disableEscape?: boolean): string; protected parseTableName(target: Table | string): { schema: string; tableName: string; }; protected buildCreateColumnSql(table: Table, column: TableColumn): string; }