From f4d8570b9c5aad00514557792fea7ea3cb0d91e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 12 Jan 2016 08:53:27 +0100 Subject: [PATCH] README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 980416a52..add7be664 100644 --- a/README.md +++ b/README.md @@ -507,15 +507,15 @@ There are many supported value types (Bool, Int, String, NSDate, Swift enums, et ```swift dbQueue.inDatabase { db in // The number of persons with an email ending in @example.com: - let count = Int.fetchOne(db, + let count: Int = Int.fetchOne(db, "SELECT COUNT(*) FROM persons WHERE email LIKE ?", arguments: ["%@example.com"])! // All URLs: - let urls = NSURL.fetchAll(db, "SELECT url FROM links") + let urls: [NSURL] = NSURL.fetchAll(db, "SELECT url FROM links") // The emails of people who own at least two pets: - let emails = Optional.fetchAll(db, + let emails: [String?] = String?.fetchAll(db, "SELECT persons.email " + "FROM persons " + "JOIN pets ON pets.masterId = persons.id " +