@pi-r/mariadb 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 +3 -3
package/client/index.js
CHANGED
|
@@ -128,9 +128,9 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
128
128
|
if (length === 0) {
|
|
129
129
|
return [];
|
|
130
130
|
}
|
|
131
|
-
let parallel, connectOnce, errorQuery, sessionKey, outCacheMiss;
|
|
131
|
+
let parallel, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss;
|
|
132
132
|
if (isPlainObject(options)) {
|
|
133
|
-
({ parallel, connectOnce, errorQuery, sessionKey, outCacheMiss } = options);
|
|
133
|
+
({ parallel, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss } = options);
|
|
134
134
|
}
|
|
135
135
|
else {
|
|
136
136
|
if (typeof options === 'string') {
|
|
@@ -243,7 +243,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
243
243
|
const cacheValue = ignoreCache === undefined ? sessionKey : Array.isArray(ignoreCache) ? { sessionKey, exclusiveOf: ignoreCache } : { sessionKey, renewCache: ignoreCache === 0 };
|
|
244
244
|
let queryString = '', cacheCredential;
|
|
245
245
|
if (caching && ignoreCache !== true && !prepared && !streamRow) {
|
|
246
|
-
queryString = Db.
|
|
246
|
+
queryString = Db.keyForResult(query, params);
|
|
247
247
|
cacheCredential = DbPool.sanitize(credential, sortKeys);
|
|
248
248
|
if (ignoreCache !== 1) {
|
|
249
249
|
const result = this.getQueryResult(source, cacheCredential, queryString, cacheValue);
|
|
@@ -347,6 +347,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
347
347
|
}
|
|
348
348
|
return this.processRows(batch, tasks, {
|
|
349
349
|
parallel,
|
|
350
|
+
errorAsEmpty,
|
|
350
351
|
disconnect() {
|
|
351
352
|
for (const item of clients) {
|
|
352
353
|
void item.end();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/mariadb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "MariaDB client driver for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"types": "client/index.d.ts",
|
|
@@ -17,8 +17,8 @@
|
|
|
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.
|
|
20
|
+
"@e-mc/db": "^0.14.6",
|
|
21
|
+
"@e-mc/types": "^0.14.6",
|
|
22
22
|
"mariadb": "^3.5.3"
|
|
23
23
|
}
|
|
24
24
|
}
|