README.md

This commit is contained in:
Gwendal Roué committed 2015-07-07 08:35:19 +02:00
1 parent ebf39fdd70
commit a0c31a57a5
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -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?
}
+3 -1
View File
@@ -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