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.d.ts +708 -680
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adapter.test.ts +2 -2
- package/src/adapter.ts +2 -2
- package/src/db.ts +2 -2
- package/src/queryMethods/insert.ts +38 -8
- package/src/relations.ts +5 -2
package/dist/index.esm.js
CHANGED
|
@@ -3013,7 +3013,7 @@ class Adapter {
|
|
|
3013
3013
|
client.release();
|
|
3014
3014
|
}
|
|
3015
3015
|
}
|
|
3016
|
-
|
|
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
|
-
|
|
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,
|
|
5458
|
+
{ adapter, close: () => adapter.close() }
|
|
5459
5459
|
);
|
|
5460
5460
|
Object.getOwnPropertyNames(Db.prototype).forEach((name) => {
|
|
5461
5461
|
db[name] = Db.prototype[name];
|