Skip to content

Commit

Permalink
Fix playground example as the prepare func can throw an error
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhenry committed Oct 12, 2022
1 parent e3dd8c8 commit 00a8668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SQLite.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ db.createAggregation("customConcat",
initialValue: "users:",
reduce: reduce,
result: { $0 })
let result = db.prepare("SELECT customConcat(email) FROM users").scalar() as! String
let result = try db.prepare("SELECT customConcat(email) FROM users").scalar() as! String
print(result)

0 comments on commit 00a8668

Please sign in to comment.