dbgate-types 6.8.2 → 7.0.0-alpha.10
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/engines.d.ts +14 -1
- package/extensions.d.ts +3 -3
- package/package.json +1 -1
package/engines.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
} from './dbinfo';
|
|
16
16
|
import { FilterBehaviour } from './filter-type';
|
|
17
17
|
|
|
18
|
+
export type EngineDriverIcon = string | { light: string; dark?: string };
|
|
19
|
+
|
|
18
20
|
export interface StreamOptions {
|
|
19
21
|
recordset: (columns) => void;
|
|
20
22
|
row: (row) => void;
|
|
@@ -224,6 +226,15 @@ export interface RestoreDatabaseSettings extends BackupRestoreSettingsBase {
|
|
|
224
226
|
inputFile: string;
|
|
225
227
|
}
|
|
226
228
|
|
|
229
|
+
export interface DatabaseMethodCallItem {
|
|
230
|
+
method: string;
|
|
231
|
+
args: any[];
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface DatabaseMethodCallList {
|
|
235
|
+
calls: DatabaseMethodCallItem[];
|
|
236
|
+
}
|
|
237
|
+
|
|
227
238
|
export interface EngineDriver<TClient = any, TDataBase = any> extends FilterBehaviourProvider {
|
|
228
239
|
engine: string;
|
|
229
240
|
title: string;
|
|
@@ -231,7 +242,6 @@ export interface EngineDriver<TClient = any, TDataBase = any> extends FilterBeha
|
|
|
231
242
|
databaseEngineTypes: string[];
|
|
232
243
|
editorMode?: string;
|
|
233
244
|
readOnlySessions: boolean;
|
|
234
|
-
supportedKeyTypes: SupportedDbKeyType[];
|
|
235
245
|
dataEditorTypesBehaviour: DataEditorTypesBehaviour;
|
|
236
246
|
supportsDatabaseUrl?: boolean;
|
|
237
247
|
supportsDatabaseBackup?: boolean;
|
|
@@ -253,6 +263,7 @@ export interface EngineDriver<TClient = any, TDataBase = any> extends FilterBeha
|
|
|
253
263
|
collectionPluralLabel?: string;
|
|
254
264
|
collectionNameLabel?: string;
|
|
255
265
|
newCollectionFormParams?: any[];
|
|
266
|
+
icon?: EngineDriverIcon;
|
|
256
267
|
|
|
257
268
|
supportedCreateDatabase?: boolean;
|
|
258
269
|
showConnectionField?: (
|
|
@@ -337,6 +348,8 @@ export interface EngineDriver<TClient = any, TDataBase = any> extends FilterBeha
|
|
|
337
348
|
readCollection(dbhan: DatabaseHandle<TClient, TDataBase>, options: ReadCollectionOptions): Promise<any>;
|
|
338
349
|
updateCollection(dbhan: DatabaseHandle<TClient, TDataBase>, changeSet: any): Promise<any>;
|
|
339
350
|
getCollectionUpdateScript(changeSet: any, collectionInfo: CollectionInfo): string;
|
|
351
|
+
getKeyValueMethodCallList(changeSet: any): DatabaseMethodCallList;
|
|
352
|
+
invokeMethodCallList(dbhan: DatabaseHandle<TClient, TDataBase>, callList: DatabaseMethodCallList): Promise<void>;
|
|
340
353
|
createDatabase(dbhan: DatabaseHandle<TClient, TDataBase>, name: string): Promise;
|
|
341
354
|
dropDatabase(dbhan: DatabaseHandle<TClient, TDataBase>, name: string): Promise;
|
|
342
355
|
getQuerySplitterOptions(usage: 'stream' | 'script' | 'editor' | 'import'): any;
|
package/extensions.d.ts
CHANGED
|
@@ -23,10 +23,11 @@ export interface FileFormatDefinition {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export interface ThemeDefinition {
|
|
26
|
-
themeClassName: string;
|
|
27
26
|
themeName: string;
|
|
28
27
|
themeType: 'light' | 'dark';
|
|
29
|
-
|
|
28
|
+
isBuiltInTheme?: boolean;
|
|
29
|
+
themeVariables?: { [key: string]: string };
|
|
30
|
+
themePublicCloudPath?: string;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export interface PluginDefinition {
|
|
@@ -47,5 +48,4 @@ export interface ExtensionsDirectory {
|
|
|
47
48
|
fileFormats: FileFormatDefinition[];
|
|
48
49
|
quickExports: QuickExportDefinition[];
|
|
49
50
|
drivers: EngineDriver[];
|
|
50
|
-
themes: ThemeDefinition[];
|
|
51
51
|
}
|
package/package.json
CHANGED