Skip to content

Commit bf6a722

Browse files
committed
Add missing boilerplate
1 parent 2d059b0 commit bf6a722

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Documentation/Index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,9 +1086,11 @@ You can add a convenience property on `Connection` to query and set the [`PRAGMA
10861086
This is a great way to manage your schema’s version over migrations.
10871087

10881088
``` 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)") }
1089+
extension Connection {
1090+
public var userVersion: Int32 {
1091+
get { return Int32(try! scalar("PRAGMA user_version") as! Int64)}
1092+
set { try! run("PRAGMA user_version = \(newValue)") }
1093+
}
10921094
}
10931095
```
10941096

0 commit comments

Comments
 (0)