From ff69f6fdfc65a5c3caf2e94db58b8961813dfa2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 22 Mar 2016 20:31:28 +0100 Subject: [PATCH] README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c79456ba0..bd3b3dc8c 100644 --- a/README.md +++ b/README.md @@ -246,9 +246,9 @@ dbQueue.inDatabase { db in } ``` -*If you know what you are doing*, you can skip the protection of `inDatabase`, and use the queue directly, as below. In a multithreaded application, two consecutive statements could then potentially run on an unstable database state (see [Concurrency]): +*If you know what you are doing*, you can skip the protection of `inDatabase`, and use the queue directly, as below. In a multithreaded application, two consecutive statements could then potentially run on an unstable database state (see [Concurrency](#concurrency)): -``` +```swift // Direct access, for advanced users only: let pois = PointOfInterest.fetchAll(dbQueue) ``` @@ -315,9 +315,9 @@ dbPool.read { db in } ``` -*If you know what you are doing*, you can skip the protection of `read`, `write` and `writeInTransaction`, and use the pool directly, as below. In a multithreaded application, two consecutive statements could then potentially run on an unstable database state (see [Concurrency]): +*If you know what you are doing*, you can skip the protection of `read`, `write` and `writeInTransaction`, and use the pool directly, as below. In a multithreaded application, two consecutive statements could then potentially run on an unstable database state (see [Concurrency](#concurrency)): -``` +```swift // Direct access, for advanced users only: let pois = PointOfInterest.fetchAll(dbPool) ```