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

SelectFrom example seems to be incorrect as of the latest #20

Closed
endash opened this issue Oct 10, 2014 · 1 comment
Closed

SelectFrom example seems to be incorrect as of the latest #20

endash opened this issue Oct 10, 2014 · 1 comment

Comments

@endash
Copy link

endash commented Oct 10, 2014

The snippet provided in the README:

database.selectFrom("people") { (statement:Statement) -> Person in

Results in the error

Missing argument for parameter 'collector'

Modifying this to

database.selectFrom("people", collector: { (statement:Statement) -> Person in
    ...
})

Appears to resolve the error.

@nerdyc
Copy link
Owner

nerdyc commented Oct 20, 2014

Hey Christopher,

Thanks! I've significantly reworked the way Squeal exposes result sets. TL;DR -- just use a for-in loop now. The README has been updated; I'd love to know what you think.

@nerdyc nerdyc closed this as completed Oct 20, 2014
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