README.md

This commit is contained in:
Gwendal Roué committed 2015-10-22 19:00:45 +02:00
1 parent 3bb1a6ef6f
commit 488a830b7c
1 file changed
+1 -2
+1 -2
View File
@@ -51,8 +51,7 @@ try dbQueue.inDatabase { db in
try db.execute("CREATE TABLE wines (...)")
// Insert
let changes = try db.execute(
"INSERT INTO wines (color, name) VALUES (?, ?)",
let changes = try db.execute("INSERT INTO wines (color, name) VALUES (?, ?)",
arguments: [Color.Red, "Pomerol"])
let wineId = changes.insertedRowID
print("Inserted wine id: \(wineID)")