File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ public struct SQLRow {
37
37
38
38
/// Returns a single column of the current result row of a query.
39
39
public subscript< T: SQLDataType > ( name: String ) -> T {
40
+ #warning("TODO: not implemented")
40
41
fatalError ( )
41
42
}
42
43
Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ public final class SQLStatement {
53
53
let db : SQLConnection
54
54
let ref : OpaquePointer
55
55
56
+ /// Returns true (non-zero) if the statement has been stepped at least once
57
+ /// using `next()`, but has neither run to completion nor been reset.
58
+ public var isBusy : Bool {
59
+ sqlite3_stmt_busy ( ref) != 0
60
+ }
61
+
56
62
init ( db: SQLConnection , ref: OpaquePointer ) {
57
63
self . db = db
58
64
self . ref = ref
You can’t perform that action at this time.
0 commit comments