@bdkinc/knex-ibmi 0.0.10 → 0.0.11
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/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/index.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -364,12 +364,12 @@ var DB2Client = class extends import_knex.knex.Client {
|
|
|
364
364
|
if (this.pool) {
|
|
365
365
|
const poolConfig = {
|
|
366
366
|
connectionString: this._getConnectionString(connectionConfig),
|
|
367
|
-
connectionTimeout: this.config?.acquireConnectionTimeout || 6e4,
|
|
368
|
-
initialSize: this.config.pool?.min || 2,
|
|
369
|
-
maxSize: this.config.pool?.max || 10,
|
|
367
|
+
connectionTimeout: this.config.connection?.acquireConnectionTimeout || 6e4,
|
|
368
|
+
initialSize: this.config.connection?.pool?.min || 2,
|
|
369
|
+
maxSize: this.config.connection?.pool?.max || 10,
|
|
370
370
|
reuseConnection: true
|
|
371
371
|
};
|
|
372
|
-
console.log({
|
|
372
|
+
console.log({ config: this.config, pool: this.pool, poolConfig });
|
|
373
373
|
const pool = await this.driver.pool(poolConfig);
|
|
374
374
|
return await pool.connect();
|
|
375
375
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -329,12 +329,12 @@ var DB2Client = class extends knex.Client {
|
|
|
329
329
|
if (this.pool) {
|
|
330
330
|
const poolConfig = {
|
|
331
331
|
connectionString: this._getConnectionString(connectionConfig),
|
|
332
|
-
connectionTimeout: this.config?.acquireConnectionTimeout || 6e4,
|
|
333
|
-
initialSize: this.config.pool?.min || 2,
|
|
334
|
-
maxSize: this.config.pool?.max || 10,
|
|
332
|
+
connectionTimeout: this.config.connection?.acquireConnectionTimeout || 6e4,
|
|
333
|
+
initialSize: this.config.connection?.pool?.min || 2,
|
|
334
|
+
maxSize: this.config.connection?.pool?.max || 10,
|
|
335
335
|
reuseConnection: true
|
|
336
336
|
};
|
|
337
|
-
console.log({
|
|
337
|
+
console.log({ config: this.config, pool: this.pool, poolConfig });
|
|
338
338
|
const pool = await this.driver.pool(poolConfig);
|
|
339
339
|
return await pool.connect();
|
|
340
340
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -65,12 +65,12 @@ class DB2Client extends knex.Client {
|
|
|
65
65
|
if (this.pool) {
|
|
66
66
|
const poolConfig = {
|
|
67
67
|
connectionString: this._getConnectionString(connectionConfig),
|
|
68
|
-
connectionTimeout: this.config?.acquireConnectionTimeout || 60000,
|
|
69
|
-
initialSize: this.config.pool?.min || 2,
|
|
70
|
-
maxSize: this.config.pool?.max || 10,
|
|
68
|
+
connectionTimeout: this.config.connection?.acquireConnectionTimeout || 60000,
|
|
69
|
+
initialSize: this.config.connection?.pool?.min || 2,
|
|
70
|
+
maxSize: this.config.connection?.pool?.max || 10,
|
|
71
71
|
reuseConnection: true,
|
|
72
72
|
};
|
|
73
|
-
console.log({
|
|
73
|
+
console.log({ config: this.config, pool: this.pool, poolConfig });
|
|
74
74
|
const pool = await this.driver.pool(poolConfig);
|
|
75
75
|
return await pool.connect();
|
|
76
76
|
}
|