groundhog
This library maps datatypes to a relational model, in a way similar to what ORM libraries do in OOP. See the tutorial https://www.schoolofhaskell.com/user/lykahb/groundhog for introduction (by lykahb)
beam
A type-safe, non-TH Haskell SQL library and ORM (by haskell-beam)
Our great sponsors
groundhog | beam | |
---|---|---|
1 | 5 | |
176 | 573 | |
- | 0.5% | |
0.0 | 5.3 | |
over 1 year ago | 3 months ago | |
Haskell | Haskell | |
BSD 3-clause "New" or "Revised" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
groundhog
Posts with mentions or reviews of groundhog.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-05.
-
How can database libraries be compared to each other?
There is also groundhog, which I used with sqlite in a toy project, but that was years ago. I can see it had a release this year, which is a good sign.
beam
Posts with mentions or reviews of beam.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-02.
-
How to use PostgreSQL with Haskell: beam
Beam “is a highly-general library for accessing any kind of database with Haskell”. Beam makes extensive use of GHC's Generics mechanism — no Template Haskell.
-
How can database libraries be compared to each other?
One anecdotal opinion from a rando reddit user: I prefer beam despite the boilerplate and more complex types because of the authors make a serious attempt at sql-standards compliance: https://github.com/haskell-beam/beam
- A more functional approach
-
Haskell sql multi-engine library
It's actively worked on: https://github.com/haskell-beam/beam Makes heavy use of the type level though.
-
Reflections On Using Haskell For My Startup
The beam library is one example of this: https://github.com/haskell-beam/beam/pulls
What are some alternatives?
When comparing groundhog and beam you can also consider the following projects:
mywatch
esqueleto - Bare bones, type-safe EDSL for SQL queries on persistent backends.
squeal-postgresql - Squeal, a deep embedding of SQL in Haskell
hocilib - A lightweight Haskell binding to the OCILIB C API
yxdb-utils - Utilities for parsing Alteryx Database format
HongoDB - A Simple Key Value Store
positron - Experiment
dbcleaner - DEPRECATED: A simple database cleaner library for testing
ampersand - Build database applications faster than anyone else, and keep your data pollution free as a bonus.
DSH - Database-Supported Haskell