mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
README.md
This commit is contained in:
1 parent
ebf39fdd70
commit
a0c31a57a5
2 files changed
+4
-2
No files matched your search
@@ -29,7 +29,7 @@ public final class UpdateStatement : Statement {
|
||||
/// The number of rows changed by the statement.
|
||||
let changedRowCount: Int
|
||||
|
||||
/// The last inserted Row ID. Relevant if and only if the statement is
|
||||
/// The inserted Row ID. Relevant if and only if the statement is
|
||||
/// an INSERT statement.
|
||||
let insertedRowID: Int64?
|
||||
}
|
||||
|
||||
@@ -399,7 +399,9 @@ try dbQueue.inTransaction { db in
|
||||
]
|
||||
|
||||
for person in persons {
|
||||
try statement.execute(bindings: Bindings(person))
|
||||
let changes = try statement.execute(bindings: Bindings(person))
|
||||
changes.changedRowCount // The number of rows changed by the statement.
|
||||
changes.insertedRowID // The inserted Row ID.
|
||||
}
|
||||
|
||||
return .Commit
|
||||
|
||||
Reference in new issue
Block a user