@bdkinc/knex-ibmi 0.0.32 → 0.0.33
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 +1 -1
- package/src/index.ts +4 -4
- package/src/query/ibmi-querycompiler.ts +0 -13
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -60,7 +60,7 @@ class DB2Client extends knex.Client {
|
|
|
60
60
|
async acquireRawConnection() {
|
|
61
61
|
this.printDebug("acquiring raw connection");
|
|
62
62
|
const connectionConfig = this.config.connection;
|
|
63
|
-
console.log(this._getConnectionString(connectionConfig));
|
|
63
|
+
console.log("knex-ibmi: ", this._getConnectionString(connectionConfig));
|
|
64
64
|
|
|
65
65
|
// @ts-ignore
|
|
66
66
|
if (this.config?.connection?.pool) {
|
|
@@ -87,7 +87,7 @@ class DB2Client extends knex.Client {
|
|
|
87
87
|
// Used to explicitly close a connection, called internally by the pool manager
|
|
88
88
|
// when a connection times out or the pool is shutdown.
|
|
89
89
|
async destroyRawConnection(connection: Connection) {
|
|
90
|
-
console.log("destroy connection");
|
|
90
|
+
console.log("knex-ibmi: ", "destroy connection");
|
|
91
91
|
return await connection.close();
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -129,7 +129,7 @@ class DB2Client extends knex.Client {
|
|
|
129
129
|
}
|
|
130
130
|
} else {
|
|
131
131
|
await connection.beginTransaction();
|
|
132
|
-
console.log("transaction begun");
|
|
132
|
+
console.log("knex-ibmi: ", "transaction begun");
|
|
133
133
|
try {
|
|
134
134
|
const statement = await connection.createStatement();
|
|
135
135
|
await statement.prepare(obj.sql);
|
|
@@ -172,7 +172,7 @@ class DB2Client extends knex.Client {
|
|
|
172
172
|
await connection.rollback();
|
|
173
173
|
throw new Error(err);
|
|
174
174
|
} finally {
|
|
175
|
-
console.log("transaction committed");
|
|
175
|
+
console.log("knex-ibmi: ", "transaction committed");
|
|
176
176
|
await connection.commit();
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -146,19 +146,6 @@ class IBMiQueryCompiler extends QueryCompiler {
|
|
|
146
146
|
.map((a) => `${a}`)
|
|
147
147
|
.join(", ");
|
|
148
148
|
|
|
149
|
-
// @ts-ignore
|
|
150
|
-
console.log({
|
|
151
|
-
returning,
|
|
152
|
-
// @ts-ignore
|
|
153
|
-
where,
|
|
154
|
-
// @ts-ignore
|
|
155
|
-
updates,
|
|
156
|
-
// @ts-ignore
|
|
157
|
-
single: this.single.update,
|
|
158
|
-
// @ts-ignore
|
|
159
|
-
grouped: this.grouped.where,
|
|
160
|
-
values,
|
|
161
|
-
});
|
|
162
149
|
// @ts-ignore
|
|
163
150
|
const moreWheres =
|
|
164
151
|
// @ts-ignore
|