mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 18:26:00 +00:00
ms sql analyse - table list
This commit is contained in:
29
api/src/types.ts
Normal file
29
api/src/types.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
export interface EngineDriver {
|
||||
connect({ server, port, user, password });
|
||||
query(pool, sql: string): Promise<any[]>;
|
||||
getVersion(pool): Promise<string>;
|
||||
listDatabases(pool): Promise<{ name: string }[]>;
|
||||
analyseFull(pool): Promise<void>;
|
||||
analyseIncremental(pool): Promise<void>;
|
||||
}
|
||||
|
||||
// export interface NameWithSchema {
|
||||
// schema: string;
|
||||
// name: string;
|
||||
// }
|
||||
|
||||
export interface TableInfo {
|
||||
// name: NameWithSchema;
|
||||
tableName: string;
|
||||
schemaName: string;
|
||||
}
|
||||
|
||||
export interface DatabaseInfo {
|
||||
tables: TableInfo[];
|
||||
}
|
||||
|
||||
export interface OpenedDatabaseConnection {
|
||||
id: string;
|
||||
database: string;
|
||||
structure: DatabaseInfo;
|
||||
}
|
||||
Reference in New Issue
Block a user