README.md

This commit is contained in:
Gwendal Roué committed 2015-07-06 10:01:20 +02:00
1 parent d6984aceb3
commit 91bb96bcb1
1 file changed
+2 -2
+2 -2
View File
@@ -25,9 +25,9 @@ import GRDB
let dbQueue = try DatabaseQueue(path: "/path/to/database.sqlite")
// Fetch and insert values:
let redWinesCount = dbQueue.inDatabase { db in
let redWinesCount = dbQueue.inDatabase { db in // Int
db.fetchOne(Int.self, "SELECT COUNT(*) FROM wines WHERE color = ?",
bindings: [Color.Red]) // Int?
bindings: [Color.Red])!
}
// Insert and fetch row models: