pqb 0.31.1 → 0.31.2
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 +4 -4
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2994,6 +2994,7 @@ if (process.versions.bun) {
|
|
|
2994
2994
|
};
|
|
2995
2995
|
}
|
|
2996
2996
|
Object.defineProperty(Then.prototype, "then", {
|
|
2997
|
+
configurable: true,
|
|
2997
2998
|
get: getThen,
|
|
2998
2999
|
set(value) {
|
|
2999
3000
|
Object.defineProperty(this, "then", {
|
|
@@ -6605,18 +6606,18 @@ class Create {
|
|
|
6605
6606
|
*
|
|
6606
6607
|
* // single column:
|
|
6607
6608
|
* // (this requires a composite primary key or unique index, see below)
|
|
6608
|
-
* db.table.create(data).
|
|
6609
|
+
* db.table.create(data).onConflict('email').merge();
|
|
6609
6610
|
*
|
|
6610
6611
|
* // array of columns:
|
|
6611
|
-
* db.table.create(data).
|
|
6612
|
+
* db.table.create(data).onConflict(['email', 'name']).merge();
|
|
6612
6613
|
*
|
|
6613
6614
|
* // constraint name
|
|
6614
|
-
* db.table.create(data).
|
|
6615
|
+
* db.table.create(data).onConflict({ constraint: 'unique_index_name' }).merge();
|
|
6615
6616
|
*
|
|
6616
6617
|
* // raw SQL expression:
|
|
6617
6618
|
* db.table
|
|
6618
6619
|
* .create(data)
|
|
6619
|
-
* .
|
|
6620
|
+
* .onConflict(sql`(email) where condition`)
|
|
6620
6621
|
* .merge();
|
|
6621
6622
|
* ```
|
|
6622
6623
|
*
|