mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 17:36:01 +00:00
pk, fk analyse, show in structure tab
This commit is contained in:
35
types/engines.d.ts
vendored
35
types/engines.d.ts
vendored
@@ -1,16 +1,25 @@
|
||||
import { QueryResult } from "./query";
|
||||
export interface EngineDriver {
|
||||
connect({ server, port, user, password }: {
|
||||
server: any;
|
||||
port: any;
|
||||
user: any;
|
||||
password: any;
|
||||
}): any;
|
||||
query(pool: any, sql: string): Promise<QueryResult>;
|
||||
getVersion(pool: any): Promise<string>;
|
||||
listDatabases(pool: any): Promise<{
|
||||
name: string;
|
||||
}[]>;
|
||||
analyseFull(pool: any): Promise<void>;
|
||||
analyseIncremental(pool: any): Promise<void>;
|
||||
connect({
|
||||
server,
|
||||
port,
|
||||
user,
|
||||
password
|
||||
}: {
|
||||
server: any;
|
||||
port: any;
|
||||
user: any;
|
||||
password: any;
|
||||
}): any;
|
||||
query(pool: any, sql: string): Promise<QueryResult>;
|
||||
getVersion(pool: any): Promise<string>;
|
||||
listDatabases(
|
||||
pool: any
|
||||
): Promise<
|
||||
{
|
||||
name: string;
|
||||
}[]
|
||||
>;
|
||||
analyseFull(pool: any): Promise<void>;
|
||||
analyseIncremental(pool: any): Promise<void>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user