groundhog icon indicating copy to clipboard operation
groundhog copied to clipboard

Raw Query example may be out of date

Open tankorsmash opened this issue 3 years ago • 0 comments
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!

tankorsmash avatar Aug 31 '22 23:08 tankorsmash