mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
README.md
This commit is contained in:
1 parent
3bb1a6ef6f
commit
488a830b7c
1 file changed
+1
-2
@@ -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)")
|
||||
|
||||
Reference in new issue
Block a user