import { QueryInterface as SequelizeQueryInterface, Transaction, Transactionable } from 'sequelize'; import { Collection } from '../collection'; import Database from '../database'; export type TableInfo = { tableName: string; schema?: string; }; export default abstract class QueryInterface { db: Database; sequelizeQueryInterface: SequelizeQueryInterface; protected constructor(db: Database); abstract collectionTableExists(collection: Collection, options?: Transactionable): Promise; abstract listViews(): any; abstract viewDef(viewName: string): Promise; abstract viewColumnUsage(options: { viewName: string; schema?: string; }): Promise<{ [view_column_name: string]: { column_name: string; table_name: string; table_schema?: string; }; }>; abstract parseSQL(sql: string): any; abstract showTableDefinition(tableInfo: TableInfo): Promise; dropAll(options: any): Promise; abstract getAutoIncrementInfo(options: { tableInfo: TableInfo; fieldName: string; }): Promise<{ seqName?: string; currentVal: number; }>; abstract setAutoIncrementVal(options: { tableInfo: TableInfo; columnName: string; seqName?: string; currentVal: number; transaction?: Transaction; }): Promise; }