Skip to content

Commit fd04099

Browse files
committed
SQLStatement.execute() now returns a statement
1 parent 0e56f73 commit fd04099

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# SwiftSQL 0.x
22

3+
## SwiftSQL 0.2.0
4+
5+
*May 14, 2020*
6+
7+
- `SQLStatement.execute()` now returns a statement so that you could chain it with `column(at:)` and other calls.
8+
9+
310
## SwiftSQL 0.1.0
411

512
*May 13, 2020*

Sources/SwiftSQL/SQLStatement.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ public final class SQLStatement {
8484
///
8585
/// - note: See [SQLite: Result and Error Codes](https://www.sqlite.org/rescode.html)
8686
/// for more information.
87-
public func execute() throws {
87+
public func execute() throws -> SQLStatement {
8888
try isOK(sqlite3_step(ref))
89+
return self
8990
}
9091

9192
// MARK: Binding Parameters

0 commit comments

Comments
 (0)