mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Documentation
This commit is contained in:
1 parent
adbca4ba1a
commit
a47fef9d19
1 file changed
+2
-2
@@ -2458,7 +2458,7 @@ let count1 = PointOfInterest.fetchCount(dbQueue)
|
||||
let count2 = PointOfInterest.fetchCount(dbQueue)
|
||||
```
|
||||
|
||||
It is easy to avoid nasty surprises:
|
||||
It is easy to avoid surprises:
|
||||
|
||||
The `inDatabase` and `inTransaction` methods run their closure argument in a protected dispatch queue, and block the current thread until your database statements are executed. They safely serialize the database accesses:
|
||||
|
||||
@@ -2504,7 +2504,7 @@ let count1 = PointOfInterest.fetchCount(dbPool)
|
||||
let count2 = PointOfInterest.fetchCount(dbPool)
|
||||
```
|
||||
|
||||
It is easy to avoid nasty surprises:
|
||||
It is easy to avoid surprises:
|
||||
|
||||
The `write` and `writeInTransaction` methods run their closure argument in a protected dispatch queue, and block the current thread until your database statements are executed. They safely serialize the database updates:
|
||||
|
||||
|
||||
Reference in new issue
Block a user