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
cac9104769
commit
de4e753429
1 file changed
+4
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user