pqb 0.2.3 → 0.2.5

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.esm.js CHANGED
@@ -3013,7 +3013,7 @@ class Adapter {
3013
3013
  client.release();
3014
3014
  }
3015
3015
  }
3016
- destroy() {
3016
+ close() {
3017
3017
  return this.pool.end();
3018
3018
  }
3019
3019
  }
@@ -3055,7 +3055,7 @@ class TransactionAdapter {
3055
3055
  async transaction(cb) {
3056
3056
  return await cb(this);
3057
3057
  }
3058
- destroy() {
3058
+ close() {
3059
3059
  return this.pool.end();
3060
3060
  }
3061
3061
  }
@@ -5455,7 +5455,7 @@ const createDb = (_a) => {
5455
5455
  );
5456
5456
  },
5457
5457
  qb,
5458
- { adapter, destroy: () => adapter.destroy() }
5458
+ { adapter, close: () => adapter.close() }
5459
5459
  );
5460
5460
  Object.getOwnPropertyNames(Db.prototype).forEach((name) => {
5461
5461
  db[name] = Db.prototype[name];