From de4e753429b8dafd9dffcbebb41994638fff2e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 2 Dec 2016 13:13:44 +0100 Subject: [PATCH] Documentation --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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