Skip to content

Pluck does not throw #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PranKe01 opened this issue Apr 17, 2016 · 1 comment
Closed

Pluck does not throw #414

PranKe01 opened this issue Apr 17, 2016 · 1 comment

Comments

@PranKe01
Copy link

The pluck function does not throw an exception, but in the documentation you use the try keyword:
let user = try db.pluck(query)

Also in the documentation the menu point "Migrations and Schema Versioning" is not linked.

@t4ec
Copy link

t4ec commented Jun 9, 2016

+1

Currently I try to check 1 field in DB to make sure it is valid, in case it is not valid app crashes and "try" cannot be used as pluck does not throw.

fatal error: 'try!' expression unexpectedly raised an error: file is encrypted or is not a database:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants