Skip to content
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

follow Installation to install but not work can not import squeal #36

Closed
androidcn opened this issue Feb 1, 2015 · 2 comments
Closed

Comments

@androidcn
Copy link

follow Installation to install but not work, can not import squeal

@androidcn
Copy link
Author

var error: NSError?
lazy var db = Database("acc.db3") , error:&error)

'Type' does not have a member named 'error'

@nerdyc
Copy link
Owner

nerdyc commented Feb 1, 2015

It looks like you've written some invalid Swift. The correct way to initialize the database is:

Database(path:"acc.db3", error:&error)

Note that it will return an Optional, so your lazy variable in also optional if it fails.

The tests for this project are a good way to see the library being used.

@nerdyc nerdyc closed this as completed Feb 1, 2015
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

2 participants