dbgate-types 7.1.13 → 7.2.0

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import stream from 'stream';
2
- import { QueryResult } from './query';
2
+ import { QueryResult, QueryResultColumn } from './query';
3
3
  import { SqlDialect } from './dialect';
4
4
  import { SqlDumper } from './dumper';
5
5
  import {
@@ -261,6 +261,13 @@ export interface EngineDriver<TClient = any, TDataBase = any> extends FilterBeha
261
261
  implicitTransactions?: boolean; // transaction is started with first SQL command, no BEGIN TRANSACTION is needed
262
262
  premiumOnly?: boolean;
263
263
  supportExecuteQuery?: boolean;
264
+ supportsEditableQueryResults?: boolean;
265
+ enrichColumnMetadata?(
266
+ dbhan: DatabaseHandle<TClient, TDataBase>,
267
+ sql: string,
268
+ columns: QueryResultColumn[],
269
+ dbinfo?: DatabaseInfo
270
+ ): Promise<QueryResultColumn[]>;
264
271
 
265
272
  collectionSingularLabel?: string;
266
273
  collectionPluralLabel?: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.1.13",
2
+ "version": "7.2.0",
3
3
  "name": "dbgate-types",
4
4
  "homepage": "https://www.dbgate.io/",
5
5
  "repository": {
package/query.d.ts CHANGED
@@ -7,7 +7,11 @@ export interface QueryResultColumn {
7
7
  columnName: string;
8
8
  notNull: boolean;
9
9
  autoIncrement?: boolean;
10
+ isPrimaryKey?: boolean;
10
11
  dataType?: string;
12
+ tableName?: string;
13
+ tableSchema?: string;
14
+ sourceColumnName?: string;
11
15
  }
12
16
 
13
17
  export interface QueryResult {