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.d.ts
CHANGED
|
@@ -4154,18 +4154,18 @@ declare class Create {
|
|
|
4154
4154
|
*
|
|
4155
4155
|
* // single column:
|
|
4156
4156
|
* // (this requires a composite primary key or unique index, see below)
|
|
4157
|
-
* db.table.create(data).
|
|
4157
|
+
* db.table.create(data).onConflict('email').merge();
|
|
4158
4158
|
*
|
|
4159
4159
|
* // array of columns:
|
|
4160
|
-
* db.table.create(data).
|
|
4160
|
+
* db.table.create(data).onConflict(['email', 'name']).merge();
|
|
4161
4161
|
*
|
|
4162
4162
|
* // constraint name
|
|
4163
|
-
* db.table.create(data).
|
|
4163
|
+
* db.table.create(data).onConflict({ constraint: 'unique_index_name' }).merge();
|
|
4164
4164
|
*
|
|
4165
4165
|
* // raw SQL expression:
|
|
4166
4166
|
* db.table
|
|
4167
4167
|
* .create(data)
|
|
4168
|
-
* .
|
|
4168
|
+
* .onConflict(sql`(email) where condition`)
|
|
4169
4169
|
* .merge();
|
|
4170
4170
|
* ```
|
|
4171
4171
|
*
|
package/dist/index.js
CHANGED
|
@@ -2996,6 +2996,7 @@ if (process.versions.bun) {
|
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
2998
|
Object.defineProperty(Then.prototype, "then", {
|
|
2999
|
+
configurable: true,
|
|
2999
3000
|
get: getThen,
|
|
3000
3001
|
set(value) {
|
|
3001
3002
|
Object.defineProperty(this, "then", {
|
|
@@ -6607,18 +6608,18 @@ class Create {
|
|
|
6607
6608
|
*
|
|
6608
6609
|
* // single column:
|
|
6609
6610
|
* // (this requires a composite primary key or unique index, see below)
|
|
6610
|
-
* db.table.create(data).
|
|
6611
|
+
* db.table.create(data).onConflict('email').merge();
|
|
6611
6612
|
*
|
|
6612
6613
|
* // array of columns:
|
|
6613
|
-
* db.table.create(data).
|
|
6614
|
+
* db.table.create(data).onConflict(['email', 'name']).merge();
|
|
6614
6615
|
*
|
|
6615
6616
|
* // constraint name
|
|
6616
|
-
* db.table.create(data).
|
|
6617
|
+
* db.table.create(data).onConflict({ constraint: 'unique_index_name' }).merge();
|
|
6617
6618
|
*
|
|
6618
6619
|
* // raw SQL expression:
|
|
6619
6620
|
* db.table
|
|
6620
6621
|
* .create(data)
|
|
6621
|
-
* .
|
|
6622
|
+
* .onConflict(sql`(email) where condition`)
|
|
6622
6623
|
* .merge();
|
|
6623
6624
|
* ```
|
|
6624
6625
|
*
|