You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- :bulb: [Recommended Practices for Designing Record Types](https://swiftpackageindex.com/groue/GRDB.swift/documentation/grdb/recordrecommendedpractices)
341
341
@@ -2194,7 +2194,7 @@ For more information about batch updates, see [Update Requests](#update-requests
2194
2194
2195
2195
> **Note**: Upsert apis are available from SQLite 3.35.0+: iOS 15.0+, macOS 12.0+, tvOS 15.0+, watchOS 8.0+, or with a [custom SQLite build] or [SQLCipher](#encryption).
2196
2196
>
2197
-
> **Note**: With regard to [persistence callbacks](#available-callbacks), an upsert behaves exactly like an insert. In particular: the `aroundInsert(_:)` and `didInsert(_:)` callbacks reports the rowid of the inserted or updated row; `willUpdate`, `aroundUdate`, `didUdate` are not called.
2197
+
> **Note**: With regard to [persistence callbacks](#available-callbacks), an upsert behaves exactly like an insert. In particular: the `aroundInsert(_:)` and `didInsert(_:)` callbacks reports the rowid of the inserted or updated row; `willUpdate`, `aroundUpdate`, `didUpdate` are not called.
2198
2198
2199
2199
[PersistableRecord] provides three upsert methods:
2200
2200
@@ -3008,7 +3008,7 @@ try player.insert(db)
3008
3008
> // INSERT OR IGNORE INTO player ... RETURNING *
3009
3009
> do {
3010
3010
> let insertedPlayer = try player.insertAndFetch(db) {
0 commit comments