pqb 0.2.4 → 0.2.6

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 CHANGED
@@ -3017,7 +3017,7 @@ class Adapter {
3017
3017
  client.release();
3018
3018
  }
3019
3019
  }
3020
- destroy() {
3020
+ close() {
3021
3021
  return this.pool.end();
3022
3022
  }
3023
3023
  }
@@ -3059,7 +3059,7 @@ class TransactionAdapter {
3059
3059
  async transaction(cb) {
3060
3060
  return await cb(this);
3061
3061
  }
3062
- destroy() {
3062
+ close() {
3063
3063
  return this.pool.end();
3064
3064
  }
3065
3065
  }
@@ -5459,7 +5459,7 @@ const createDb = (_a) => {
5459
5459
  );
5460
5460
  },
5461
5461
  qb,
5462
- { adapter, destroy: () => adapter.destroy() }
5462
+ { adapter, close: () => adapter.close() }
5463
5463
  );
5464
5464
  Object.getOwnPropertyNames(Db.prototype).forEach((name) => {
5465
5465
  db[name] = Db.prototype[name];