@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 CHANGED
@@ -110,6 +110,7 @@ or as Typescript
110
110
  import { knex } from "knex";
111
111
  import { Db2Dialect, DB2Config } from "@bdkinc/knex-ibmi";
112
112
 
113
+
113
114
  const config: DB2Config = {
114
115
  client: Db2Dialect,
115
116
  connection: {
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({ obj });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bdkinc/knex-ibmi",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "Knex dialect for IBMi",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -177,7 +177,11 @@ class DB2Client extends knex.Client {
177
177
  }
178
178
  }
179
179
 
180
- console.log({ obj });
180
+ console.log(
181
+ "knex-ibmi: ",
182
+ obj.sql,
183
+ obj.bindings ? JSON.stringify(obj.bindings) : "",
184
+ );
181
185
  return obj;
182
186
  }
183
187
 
@@ -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":