@bdkinc/knex-ibmi 0.0.31 → 0.0.32
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/README.md +1 -0
- package/dist/index.js +5 -3
- package/package.json +1 -1
- package/src/index.ts +5 -1
- package/src/query/ibmi-querycompiler.ts +0 -3
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -323,14 +323,12 @@ var IBMiQueryCompiler = class extends import_querycompiler.default {
|
|
|
323
323
|
this.tableName} where ${Object.entries(this.single.update).map(([key, value]) => `"${key}" = '${value}'`).join(" and ")}${moreWheres.length > 0 && " and "}${moreWheres.join(
|
|
324
324
|
" and "
|
|
325
325
|
)}` : "";
|
|
326
|
-
console.log({ selectReturning });
|
|
327
326
|
const sql = withSQL + // @ts-ignore
|
|
328
327
|
`update ${this.single.only ? "only " : ""}${this.tableName} set ` + // @ts-ignore
|
|
329
328
|
updates.join(", ") + (where ? ` ${where}` : "") + (order ? ` ${order}` : "") + (limit ? ` ${limit}` : "");
|
|
330
329
|
return { sql, returning, selectReturning };
|
|
331
330
|
}
|
|
332
331
|
_returning(method, value, withTrigger) {
|
|
333
|
-
console.log("_returning", value);
|
|
334
332
|
switch (method) {
|
|
335
333
|
case "update":
|
|
336
334
|
case "insert":
|
|
@@ -494,7 +492,11 @@ var DB2Client = class extends import_knex.knex.Client {
|
|
|
494
492
|
await connection.commit();
|
|
495
493
|
}
|
|
496
494
|
}
|
|
497
|
-
console2.log(
|
|
495
|
+
console2.log(
|
|
496
|
+
"knex-ibmi: ",
|
|
497
|
+
obj.sql,
|
|
498
|
+
obj.bindings ? JSON.stringify(obj.bindings) : ""
|
|
499
|
+
);
|
|
498
500
|
return obj;
|
|
499
501
|
}
|
|
500
502
|
transaction(container, config, outerTx) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -184,8 +184,6 @@ class IBMiQueryCompiler extends QueryCompiler {
|
|
|
184
184
|
)}`
|
|
185
185
|
: "";
|
|
186
186
|
|
|
187
|
-
console.log({ selectReturning });
|
|
188
|
-
|
|
189
187
|
const sql =
|
|
190
188
|
withSQL +
|
|
191
189
|
// @ts-ignore
|
|
@@ -202,7 +200,6 @@ class IBMiQueryCompiler extends QueryCompiler {
|
|
|
202
200
|
|
|
203
201
|
_returning(method, value, withTrigger) {
|
|
204
202
|
// currently a placeholder in case I need to update return values
|
|
205
|
-
console.log("_returning", value);
|
|
206
203
|
switch (method) {
|
|
207
204
|
case "update":
|
|
208
205
|
case "insert":
|