groundhog

Type-safe datatype-database mapping library.

http://github.com/lykahb/groundhog

Version on this page:0.7.0.1@rev:2
LTS Haskell 14.27:0.10.0
Stackage Nightly 2019-09-21:0.10.0
Latest on Hackage:0.11.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.7.0.1@sha256:a9f51b82fadf30959632f8a50d31d913b322fc11a88352f48e61d78ae3542aa3,2216

Module documentation for 0.7.0.1

  • Database
    • Database.Groundhog
      • Database.Groundhog.Core
      • Database.Groundhog.Expression
      • Database.Groundhog.Generic
        • Database.Groundhog.Generic.Migration
        • Database.Groundhog.Generic.PersistBackendHelpers
        • Database.Groundhog.Generic.Sql
          • Database.Groundhog.Generic.Sql.Functions
      • Database.Groundhog.Instances

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.fpcomplete.com/user/lykahb/groundhog and examples https://github.com/lykahb/groundhog/tree/master/examples on GitHub.