dbgate-datalib 6.1.1 → 6.1.3

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.
@@ -12,10 +12,11 @@ export declare class TableGridDisplay extends GridDisplay {
12
12
  tableName: NamedObjectInfo;
13
13
  displayOptions: any;
14
14
  getDictionaryDescription: DictionaryDescriptionFunc;
15
+ isRawMode: boolean;
15
16
  table: TableInfo;
16
17
  addAllExpandedColumnsToSelected: boolean;
17
18
  hintBaseColumns: DisplayColumn[];
18
- constructor(tableName: NamedObjectInfo, driver: EngineDriver, config: GridConfig, setConfig: ChangeConfigFunc, cache: GridCache, setCache: ChangeCacheFunc, dbinfo: DatabaseInfo, displayOptions: any, serverVersion: any, getDictionaryDescription?: DictionaryDescriptionFunc, isReadOnly?: boolean);
19
+ constructor(tableName: NamedObjectInfo, driver: EngineDriver, config: GridConfig, setConfig: ChangeConfigFunc, cache: GridCache, setCache: ChangeCacheFunc, dbinfo: DatabaseInfo, displayOptions: any, serverVersion: any, getDictionaryDescription?: DictionaryDescriptionFunc, isReadOnly?: boolean, isRawMode?: boolean);
19
20
  addFormDisplayColumns(columns: any): void;
20
21
  findTable({ schemaName, pureName }: {
21
22
  schemaName?: any;
@@ -4,11 +4,12 @@ exports.TableGridDisplay = void 0;
4
4
  const dbgate_tools_1 = require("dbgate-tools");
5
5
  const GridDisplay_1 = require("./GridDisplay");
6
6
  class TableGridDisplay extends GridDisplay_1.GridDisplay {
7
- constructor(tableName, driver, config, setConfig, cache, setCache, dbinfo, displayOptions, serverVersion, getDictionaryDescription = null, isReadOnly = false) {
7
+ constructor(tableName, driver, config, setConfig, cache, setCache, dbinfo, displayOptions, serverVersion, getDictionaryDescription = null, isReadOnly = false, isRawMode = false) {
8
8
  super(config, setConfig, cache, setCache, driver, dbinfo, serverVersion);
9
9
  this.tableName = tableName;
10
10
  this.displayOptions = displayOptions;
11
11
  this.getDictionaryDescription = getDictionaryDescription;
12
+ this.isRawMode = isRawMode;
12
13
  this.addAllExpandedColumnsToSelected = false;
13
14
  this.table = this.findTable(tableName);
14
15
  if (!this.table) {
@@ -120,6 +121,9 @@ class TableGridDisplay extends GridDisplay_1.GridDisplay {
120
121
  return null;
121
122
  }
122
123
  addHintsToSelect(select) {
124
+ if (this.isRawMode) {
125
+ return false;
126
+ }
123
127
  let res = false;
124
128
  const groupColumns = this.groupColumns;
125
129
  for (const column of this.hintBaseColumns || this.getGridColumns()) {
@@ -1493,6 +1493,7 @@ exports.chinookDbInfo = {
1493
1493
  collections: [],
1494
1494
  matviews: [],
1495
1495
  triggers: [],
1496
+ schedulerEvents: [],
1496
1497
  };
1497
1498
  // const ARTIST_TABLE: TableInfo = {
1498
1499
  // pureName: 'Artist',
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "6.1.1",
2
+ "version": "6.1.3",
3
3
  "name": "dbgate-datalib",
4
4
  "main": "lib/index.js",
5
5
  "typings": "lib/index.d.ts",
@@ -13,13 +13,13 @@
13
13
  "lib"
14
14
  ],
15
15
  "dependencies": {
16
- "dbgate-sqltree": "^6.1.1",
17
- "dbgate-tools": "^6.1.1",
18
- "dbgate-filterparser": "^6.1.1",
16
+ "dbgate-sqltree": "^6.1.3",
17
+ "dbgate-tools": "^6.1.3",
18
+ "dbgate-filterparser": "^6.1.3",
19
19
  "uuid": "^3.4.0"
20
20
  },
21
21
  "devDependencies": {
22
- "dbgate-types": "^6.1.1",
22
+ "dbgate-types": "^6.1.3",
23
23
  "@types/node": "^13.7.0",
24
24
  "jest": "^28.1.3",
25
25
  "ts-jest": "^28.0.7",