Add changes & totalChanges properties for connection
This commit is contained in:
parent
b41d772f7f
commit
e48c37aca4
3 changed files with 75 additions and 0 deletions
|
|
@ -131,6 +131,14 @@ extension Connection: ConnectionProtocol {
|
|||
sqlite3_db_readonly(connection, "main") == 1
|
||||
}
|
||||
|
||||
public var changes: Int64 {
|
||||
sqlite3_changes64(connection)
|
||||
}
|
||||
|
||||
public var totalChanges: Int64 {
|
||||
sqlite3_total_changes64(connection)
|
||||
}
|
||||
|
||||
public static func initialize() throws(SQLiteError) {
|
||||
let status = sqlite3_initialize()
|
||||
guard status == SQLITE_OK else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue