groundhog
groundhog copied to clipboard
Raw Query example may be out of date
trafficstars
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!