Releases: tchoutri/pg-entity
Releases · tchoutri/pg-entity
Release list
v0.0.6.0
v0.0.5.1
v0.0.4.0
v0.0.3.0
What's Changed
- Fix resource-pool-0.3+ compilation by @blackheaven in #51
New Contributors
- @blackheaven made their first contribution in #51
Full Changelog: v0.0.2.0...v0.0.3.0
v0.0.2.0
0.0.2.0 -- 2022-08-28
This is an experimental release
- Add
queryOne_, which takes no params and returns 0 or 1 results. - Add
FieldModifiersderiving option, which takes multiple modifiers:StripPrefix (prefix :: Symbol): You can remove a certain prefix from your field namesCamelTo (separator :: Symbol)and its variants,CamelToSnakeandCamelToKebab: Transform field names written
in CamelCase to snake_case, kebab-case, or with a custom separator.
- Remove redundant metadata about the query nature when logging the query
- Add
selectOneWhereInthat can match a row's column in a value of user-provided values - Add
selectOrderByto specify a vector of sorting specs (field + sorting keyword) with your select. - Fix primary key detection in generic deriving
- Remove
withPool'. - When using
resource-pool-0.3, the type ofwithPoolreflects the removal ofMonadBaseControlfrom the upstream. - The
prodCabal flag is introduced. At this time, it disables the stdout logging of queries - Add an
upsertfunction - Stop filtering out unknown fields passed to
_where. PostgreSQL will report them better than we do.