diff --git a/README.md b/README.md index fd39d5f70..5ae4b6933 100644 --- a/README.md +++ b/README.md @@ -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