mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Documentation
This commit is contained in:
1 parent
0793a0638e
commit
999c3be21a
1 file changed
+1
-1
@@ -4801,7 +4801,7 @@ GRDB ships with two concurrency modes:
|
||||
|
||||
- **Guarantee 1**: writes are always *serialized*. At every moment, there is no more than a single thread that is writing into the database.
|
||||
|
||||
- **Guarantee 2**: reads are always *isolated*. This means that you can perform subsequent reads without fearing eventual concurrent writes to mess with your application logic:
|
||||
- **Guarantee 2**: reads are always *isolated*. This means that they are guaranteed an immutable view of the last committed state of the database, and that you can perform subsequent fetches without fearing eventual concurrent writes to mess with your application logic:
|
||||
|
||||
```swift
|
||||
try dbPool.read { db in // or dbQueue.inDatabase { ... }
|
||||
|
||||
Reference in new issue
Block a user