mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Conflict resolution documentation
This commit is contained in:
1 parent
78e560318d
commit
26564cfeda
1 file changed
+1
-2
@@ -2031,8 +2031,7 @@ SQLite let you specify conflict policies at two different places:
|
||||
t.column("email", .text)
|
||||
}
|
||||
|
||||
// Despite the unique index on email, both inserts succeed.
|
||||
// The second insert replaces the first row:
|
||||
// Again, despite the unique index on email, both inserts succeed.
|
||||
try db.execute("INSERT OR REPLACE INTO persons (email) VALUES (?)", arguments: ["arthur@example.com"])
|
||||
try db.execute("INSERT OR REPLACE INTO persons (email) VALUES (?)", arguments: ["arthur@example.com"])
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user