From 5622647f669c3be955c5d06ba9f60e355dd9ae39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 4 Jul 2015 23:52:47 +0200 Subject: [PATCH] README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3901161ed..c721064fa 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ dbQueue.inDatabase { db in // results are iterated in the database queue: // let rows = dbQueue.inDatabase { db in - db.fetchAllRows("SELECT ...") + db.fetchAllRows("SELECT ...") // [Row] } ``` @@ -174,16 +174,16 @@ Load **lazy sequences** of values, **arrays**, or a **single** value: ```swift dbQueue.inDatabase { db in - db.fetch(Int.self, "SELECT ...", bindings: ...) // AnySequence - db.fetchAll(Int.self, "SELECT ...", bindings: ...) // [Int?] - db.fetchOne(Int.self, "SELECT ...", bindings: ...) // Int? + db.fetch(Int.self, "SELECT ...", bindings: ...) // AnySequence + db.fetchAll(Int.self, "SELECT ...", bindings: ...) // [Int?] + db.fetchOne(Int.self, "SELECT ...", bindings: ...) // Int? } // Extract arrays (not sequences) out of database blocks, so that the SQLite // results are iterated in the database queue: // let names = dbQueue.inDatabase { db in - db.fetchAll(String.self, "SELECT name FROM persons") + db.fetchAll(String.self, "SELECT name FROM persons") // [String?] } ```