We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c86a47 commit b9489a7Copy full SHA for b9489a7
Sources/SQLite/Core/Connection.swift
@@ -151,6 +151,13 @@ public final class Connection {
151
public var totalChanges: Int {
152
Int(sqlite3_total_changes(handle))
153
}
154
+
155
+ /// The user version of the database.
156
+ /// See SQLite [PRAGMA user_version](https://sqlite.org/pragma.html#pragma_user_version)
157
+ public var userVersion: Int32 {
158
+ get { return Int32(try! scalar("PRAGMA user_version") as! Int64)}
159
+ set { try! run("PRAGMA user_version = \(newValue)") }
160
+ }
161
162
// MARK: - Execute
163
0 commit comments