dbgate-api-premium 6.1.0 → 6.1.1
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbgate-api-premium",
|
|
3
3
|
"main": "src/index.js",
|
|
4
|
-
"version": "6.1.
|
|
4
|
+
"version": "6.1.1",
|
|
5
5
|
"homepage": "https://dbgate.org/",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"compare-versions": "^3.6.0",
|
|
30
30
|
"cors": "^2.8.5",
|
|
31
31
|
"cross-env": "^6.0.3",
|
|
32
|
-
"dbgate-datalib": "^6.1.
|
|
32
|
+
"dbgate-datalib": "^6.1.1",
|
|
33
33
|
"dbgate-query-splitter": "^4.11.2",
|
|
34
|
-
"dbgate-sqltree": "^6.1.
|
|
35
|
-
"dbgate-tools": "^6.1.
|
|
34
|
+
"dbgate-sqltree": "^6.1.1",
|
|
35
|
+
"dbgate-tools": "^6.1.1",
|
|
36
36
|
"debug": "^4.3.4",
|
|
37
37
|
"diff": "^5.0.0",
|
|
38
38
|
"diff2html": "^3.4.13",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/fs-extra": "^9.0.11",
|
|
83
83
|
"@types/lodash": "^4.14.149",
|
|
84
|
-
"dbgate-types": "^6.1.
|
|
84
|
+
"dbgate-types": "^6.1.1",
|
|
85
85
|
"env-cmd": "^10.1.0",
|
|
86
86
|
"jsdoc-to-markdown": "^9.0.5",
|
|
87
87
|
"node-loader": "^1.0.2",
|
package/src/currentVersion.js
CHANGED
package/src/shell/tableReader.js
CHANGED
|
@@ -8,12 +8,15 @@ const logger = getLogger('tableReader');
|
|
|
8
8
|
* @param {object} options
|
|
9
9
|
* @param {connectionType} options.connection - connection object
|
|
10
10
|
* @param {object} options.systemConnection - system connection (result of driver.connect). If not provided, new connection will be created
|
|
11
|
+
* @param {object} options.driver - driver object. If not provided, it will be loaded from connection
|
|
11
12
|
* @param {string} options.pureName - table name
|
|
12
13
|
* @param {string} options.schemaName - schema name
|
|
13
14
|
* @returns {Promise<readerType>} - reader object
|
|
14
15
|
*/
|
|
15
|
-
async function tableReader({ connection, systemConnection, pureName, schemaName }) {
|
|
16
|
-
|
|
16
|
+
async function tableReader({ connection, systemConnection, pureName, schemaName, driver }) {
|
|
17
|
+
if (!driver) {
|
|
18
|
+
driver = requireEngineDriver(connection);
|
|
19
|
+
}
|
|
17
20
|
const dbhan = systemConnection || (await connectUtility(driver, connection, 'read'));
|
|
18
21
|
logger.info(`Connected.`);
|
|
19
22
|
|