I have common helper functions like this in my code:
deletePersonR :: PersonId -> Handler Html
deletePersonR personId = do
_ <- runDB $ delete personId
redirect PersonIndexR
The result of runDB is just Handler a (from the Import module).
I don't have experience with Esqueleto and pooling though.
- Jakob
Am 04.03.22 um 12:17 schrieb kees Bleijenberg: