dbgate-types 5.1.3 → 5.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dialect.d.ts +1 -0
- package/dumper.d.ts +2 -0
- package/engines.d.ts +3 -4
- package/package.json +1 -1
package/dialect.d.ts
CHANGED
package/dumper.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface SqlDumper extends AlterProcessor {
|
|
|
14
14
|
putValue(value: string | number | Date);
|
|
15
15
|
putCollection<T>(delimiter: string, collection: T[], lambda: (item: T) => void);
|
|
16
16
|
transform(type: TransformType, dumpExpr: () => void);
|
|
17
|
+
createDatabase(name: string);
|
|
18
|
+
dropDatabase(name: string);
|
|
17
19
|
|
|
18
20
|
endCommand();
|
|
19
21
|
allowIdentityInsert(table: NamedObjectInfo, allow: boolean);
|
package/engines.d.ts
CHANGED
|
@@ -89,9 +89,7 @@ export interface EngineDriver {
|
|
|
89
89
|
): Promise<TableInfo | ViewInfo | ProcedureInfo | FunctionInfo | TriggerInfo>;
|
|
90
90
|
analyseSingleTable(pool: any, name: NamedObjectInfo): Promise<TableInfo>;
|
|
91
91
|
getVersion(pool: any): Promise<{ version: string }>;
|
|
92
|
-
listDatabases(
|
|
93
|
-
pool: any
|
|
94
|
-
): Promise<
|
|
92
|
+
listDatabases(pool: any): Promise<
|
|
95
93
|
{
|
|
96
94
|
name: string;
|
|
97
95
|
}[]
|
|
@@ -112,7 +110,8 @@ export interface EngineDriver {
|
|
|
112
110
|
updateCollection(pool: any, changeSet: any): Promise<any>;
|
|
113
111
|
getCollectionUpdateScript(changeSet: any): string;
|
|
114
112
|
createDatabase(pool: any, name: string): Promise;
|
|
115
|
-
|
|
113
|
+
dropDatabase(pool: any, name: string): Promise;
|
|
114
|
+
getQuerySplitterOptions(usage: 'stream' | 'script' | 'editor'): any;
|
|
116
115
|
script(pool: any, sql: string): Promise;
|
|
117
116
|
getNewObjectTemplates(): NewObjectTemplate[];
|
|
118
117
|
// direct call of pool method, only some methods could be supported, on only some drivers
|
package/package.json
CHANGED