Skip to content

Commit 2181f48

Browse files
authored
Merge pull request #1161 from michaelhenry/fix/playground-example
Fix playground example as the prepare func can throw an error
2 parents e3dd8c8 + 00a8668 commit 2181f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SQLite.playground/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ db.createAggregation("customConcat",
9999
initialValue: "users:",
100100
reduce: reduce,
101101
result: { $0 })
102-
let result = db.prepare("SELECT customConcat(email) FROM users").scalar() as! String
102+
let result = try db.prepare("SELECT customConcat(email) FROM users").scalar() as! String
103103
print(result)

0 commit comments

Comments
 (0)