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.
2 parents 926b87d + 0d905d7 commit 5b29e7cCopy full SHA for 5b29e7c
Sources/SQLite/Core/Connection+Pragmas.swift
@@ -7,7 +7,7 @@ public extension Connection {
7
/// See SQLite [PRAGMA user_version](https://sqlite.org/pragma.html#pragma_user_version)
8
var userVersion: UserVersion? {
9
get {
10
- (try? scalar("PRAGMA user_version") as? Int64).map(Int32.init)
+ (try? scalar("PRAGMA user_version") as? Int64)?.map(Int32.init)
11
}
12
set {
13
_ = try? run("PRAGMA user_version = \(newValue ?? 0)")
0 commit comments