uliSchuster / real-world-backend

A study project on how to develop a production-grade Haskell backend application.
Apache License 2.0
1 stars 1 forks source link

Improve and unify DB resource handling via bracket or ResourceT (?) #27

Closed uliSchuster closed 4 years ago

uliSchuster commented 4 years ago

Currently, all repository operations perform individual DB connection setup and teardown in a non-atomic and thus not fail-safe way. Figure out how to best handle such external resources, abstract the pattern and reuse it throughout all DB access code.