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

Raw Query example may be out of date #103

Open
tankorsmash opened this issue Aug 31, 2022 · 0 comments
Open

Raw Query example may be out of date #103

tankorsmash opened this issue Aug 31, 2022 · 0 comments

Comments

@tankorsmash
Copy link

tankorsmash commented Aug 31, 2022

Hey there,

https://github.com/lykahb/groundhog/blob/146691a828db39932c8212cd68f732d74589e488/examples/rawQueries.hs

The rawQueries example uses mapAllRows, but commit decc193 appears to have removed it, potentially in favour of streamToList(?).

I'd update the example but I'm currently trying to figure out how to use raw queries myself to get the whole record back!

edit from the next day: fromEntityPersistValues expects the first value to be the constructor number, and then the entity persistvalues for each of the entities fields. It's mentioned in the example, but the wording could be improved I think.

Thanks for the library so far!

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

1 participant