groundhog

Type-safe datatype-database mapping library.

http://github.com/lykahb/groundhog

Version on this page:0.11.0
LTS Haskell 19.33:0.12.0
Stackage Nightly 2022-03-17:0.12.0
Latest on Hackage:0.12.0

See all snapshots groundhog appears in

BSD-3-Clause licensed and maintained by Boris Lykah
This version can be pinned in stack with:groundhog-0.11.0@sha256:ccc8b7ec204d3f93fb0113f8feaab5f0f16663003bb95162b6c318fc85a466e2,2500

This library maps your datatypes to a relational model, in a way similar to what ORM libraries do in object-oriented programming. The mapping can be configured to work with almost any schema. Groundhog supports schema migrations, composite keys, advanced expressions in queries, and much more. See tutorial https://www.schoolofhaskell.com/user/lykahb/groundhog and examples https://github.com/lykahb/groundhog/tree/master/examples on GitHub.