@pi-r/mssql 0.12.4 → 0.13.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/client/index.js +4 -3
- package/package.json +4 -4
package/client/index.js
CHANGED
|
@@ -249,9 +249,9 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
249
249
|
if (length === 0) {
|
|
250
250
|
return [];
|
|
251
251
|
}
|
|
252
|
-
let parallel, connectOnce, errorQuery, sessionKey, outCacheMiss;
|
|
252
|
+
let parallel, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss;
|
|
253
253
|
if (isPlainObject(options)) {
|
|
254
|
-
({ parallel, connectOnce, errorQuery, sessionKey, outCacheMiss } = options);
|
|
254
|
+
({ parallel, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss } = options);
|
|
255
255
|
}
|
|
256
256
|
else {
|
|
257
257
|
if (typeof options === 'string') {
|
|
@@ -355,7 +355,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
355
355
|
const cacheValue = ignoreCache === undefined ? sessionKey : Array.isArray(ignoreCache) ? { sessionKey, exclusiveOf: ignoreCache } : { sessionKey, renewCache: ignoreCache === 0 };
|
|
356
356
|
let params = item.params, queryString = '';
|
|
357
357
|
if (caching && ignoreCache !== true && !streamRow) {
|
|
358
|
-
queryString = Db.
|
|
358
|
+
queryString = Db.keyForResult(query, params);
|
|
359
359
|
if (ignoreCache !== 1) {
|
|
360
360
|
const result = this.getQueryResult(source, credential, queryString, cacheValue);
|
|
361
361
|
if (result) {
|
|
@@ -510,6 +510,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
510
510
|
}
|
|
511
511
|
return this.processRows(batch, tasks, {
|
|
512
512
|
parallel,
|
|
513
|
+
errorAsEmpty,
|
|
513
514
|
disconnect() {
|
|
514
515
|
for (const item of clients) {
|
|
515
516
|
item.close();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/mssql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "MSSQL client driver for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"types": "client/index.d.ts",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@e-mc/db": "^0.14.
|
|
21
|
-
"@e-mc/types": "^0.14.
|
|
22
|
-
"tedious": "^
|
|
20
|
+
"@e-mc/db": "^0.14.6",
|
|
21
|
+
"@e-mc/types": "^0.14.6",
|
|
22
|
+
"tedious": "^20.0.0",
|
|
23
23
|
"tedious-connection-pool2": "^2.1.0"
|
|
24
24
|
}
|
|
25
25
|
}
|