mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 23:53:57 +00:00
introduced yarn workspace
This commit is contained in:
21
packages/types/engines.d.ts
vendored
Normal file
21
packages/types/engines.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { QueryResult } from "./query";
|
||||
import { SqlDialect } from "./dialect";
|
||||
import { SqlDumper } from "./dumper";
|
||||
import { DatabaseInfo } from "./dbinfo";
|
||||
|
||||
export interface EngineDriver {
|
||||
connect(driverModules, { server, port, user, password, database }): any;
|
||||
query(pool: any, sql: string): Promise<QueryResult>;
|
||||
getVersion(pool: any): Promise<{ version: string }>;
|
||||
listDatabases(
|
||||
pool: any
|
||||
): Promise<
|
||||
{
|
||||
name: string;
|
||||
}[]
|
||||
>;
|
||||
analyseFull(pool: any): Promise<DatabaseInfo>;
|
||||
// analyseIncremental(pool: any): Promise<void>;
|
||||
dialect: SqlDialect;
|
||||
createDumper(): SqlDumper;
|
||||
}
|
||||
Reference in New Issue
Block a user