dbgate-types 5.1.5 → 5.1.7-alpha.13

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.
Files changed (2) hide show
  1. package/engines.d.ts +22 -1
  2. package/package.json +1 -1
package/engines.d.ts CHANGED
@@ -55,6 +55,17 @@ export interface SqlBackupDumper {
55
55
  run();
56
56
  }
57
57
 
58
+ export interface SummaryColumn {
59
+ fieldName: string;
60
+ header: string;
61
+ dataType: 'string' | 'number' | 'bytes';
62
+ }
63
+ export interface ServerSummaryDatabase {}
64
+ export interface ServerSummary {
65
+ columns: SummaryColumn[];
66
+ databases: ServerSummaryDatabase[];
67
+ }
68
+
58
69
  export interface EngineDriver {
59
70
  engine: string;
60
71
  title: string;
@@ -65,6 +76,12 @@ export interface EngineDriver {
65
76
  supportedKeyTypes: SupportedDbKeyType[];
66
77
  supportsDatabaseUrl?: boolean;
67
78
  supportsDatabaseDump?: boolean;
79
+ supportsServerSummary?: boolean;
80
+ supportsDatabaseProfiler?: boolean;
81
+ profilerFormatterFunction?: string;
82
+ profilerTimestampFunction?: string;
83
+ profilerChartAggregateFunction?: string;
84
+ profilerChartMeasures?: { label: string; field: string }[];
68
85
  isElectronOnly?: boolean;
69
86
  supportedCreateDatabase?: boolean;
70
87
  showConnectionField?: (field: string, values: any) => boolean;
@@ -81,7 +98,7 @@ export interface EngineDriver {
81
98
  stream(pool: any, sql: string, options: StreamOptions);
82
99
  readQuery(pool: any, sql: string, structure?: TableInfo): Promise<stream.Readable>;
83
100
  readJsonQuery(pool: any, query: any, structure?: TableInfo): Promise<stream.Readable>;
84
- writeTable(pool: any, name: NamedObjectInfo, options: WriteTableOptions): Promise<stream.Writeable>;
101
+ writeTable(pool: any, name: NamedObjectInfo, options: WriteTableOptions): Promise<stream.Writable>;
85
102
  analyseSingleObject(
86
103
  pool: any,
87
104
  name: NamedObjectInfo,
@@ -116,6 +133,10 @@ export interface EngineDriver {
116
133
  getNewObjectTemplates(): NewObjectTemplate[];
117
134
  // direct call of pool method, only some methods could be supported, on only some drivers
118
135
  callMethod(pool, method, args);
136
+ serverSummary(pool): Promise<ServerSummary>;
137
+ summaryCommand(pool, command, row): Promise<void>;
138
+ startProfiler(pool, options): Promise<any>;
139
+ stopProfiler(pool, profiler): Promise<void>;
119
140
 
120
141
  analyserClass?: any;
121
142
  dumperClass?: any;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.1.5",
2
+ "version": "5.1.7-alpha.13",
3
3
  "name": "dbgate-types",
4
4
  "homepage": "https://dbgate.org/",
5
5
  "repository": {