Documentation

This commit is contained in:
Gwendal Roué committed 2016-12-02 13:13:44 +01:00
1 parent cac9104769
commit de4e753429
1 file changed
+4
+4
View File
@@ -332,6 +332,8 @@ let poiCount = try dbQueue.inDatabase { db in
**A database queue needs your application to follow rules in order to deliver its safety guarantees.** Please refer to the [Concurrency](#concurrency) chapter.
See [DemoApps/GRDBDemoiOS/Database.swift](DemoApps/GRDBDemoiOS/GRDBDemoiOS/Database.swift) for a sample code that sets up a database queue on iOS.
### DatabaseQueue Configuration
@@ -405,6 +407,8 @@ Database pools allow several threads to access the database at the same time:
**A database pool needs your application to follow rules in order to deliver its safety guarantees.** Please refer to the [Concurrency](#concurrency) chapter.
For a sample code that sets up a database pool on iOS, see [DemoApps/GRDBDemoiOS/Database.swift](DemoApps/GRDBDemoiOS/GRDBDemoiOS/Database.swift), and replace DatabaseQueue with DatabasePool.
### DatabasePool Configuration