Skip to content

Commit 517c2b6

Browse files
committed
Connection#pluck can throw
1 parent b0e6d27 commit 517c2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SQLite.playground/Contents.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ try! db.run(emails.insert(
3535
body <- "This is a hello world message."
3636
))
3737

38-
let row = db.pluck(emails.match("hello"))
38+
let row = try! db.pluck(emails.match("hello"))
3939

4040
let query = try! db.prepare(emails.match("hello"))
4141
for row in query {

0 commit comments

Comments
 (0)