Releases: thma/generic-persistence
Releases · thma/generic-persistence
0.6.0
new features in v0.6
- Autoincrement flag for primary keys can now defined per Entity
- insert now always returns the inserted entity (thus insertReturning was removed)
- insertMany now also respects handling of primary keys
new features in v0.5
- support for PostgreSQL
- support RETURNING statement for insert
- support for auto-incrementing primary keys
- entitiesFromRows now available in GP api also
- provide a simple quasi-qoter for defining sql queries
- expose some HDBC functions in the GP API
- explicit setting of transaction mode
0.4.0.0
New things in this release:
- A query DSL
- connection pool handling
- a fail safe API that uses Either to safely return all database runtime errors
- the default API is now based on the safe API and throws exceptions in case of
Left ...
results
changes:
- all retrieve* functions have been renamed to select*
- the function retrieveAll was removed. selection of all entries os a table can now be done with
select conn allEntries
0.3.0.1
minor update to hackage
0.2.0.1 fix typos
first hackage release
Merge pull request #3 from thma/reference-handling Reference handling
Initial release
This code matches to the blog post https://thma.github.io/posts/2023-01-21-a-haskell-persistence-layer-using-generics-and-reflection.html