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 2d059b0 commit bf6a722Copy full SHA for bf6a722
Documentation/Index.md
@@ -1086,9 +1086,11 @@ You can add a convenience property on `Connection` to query and set the [`PRAGMA
1086
This is a great way to manage your schema’s version over migrations.
1087
1088
``` swift
1089
-public var userVersion: Int32 {
1090
- get { return Int32(try! scalar("PRAGMA user_version") as! Int64)}
1091
- set { try! run("PRAGMA user_version = \(newValue)") }
+extension Connection {
+ public var userVersion: Int32 {
+ get { return Int32(try! scalar("PRAGMA user_version") as! Int64)}
1092
+ set { try! run("PRAGMA user_version = \(newValue)") }
1093
+ }
1094
}
1095
```
1096
0 commit comments