- Update version of
bytestring
to 0.12,text
to 2.1 andpostgresql-simple
to 0.7 (#72)
- Remove extraneous quoting of table name in _selectWithFields
- Fix the URL of the tutorial
- Bump version bounds for
base
,resource-pool
andtemplate-haskell
- Bump supported minor GHC versions
- Internalise
Database.PostgreSQL.Entity.Internal.BlogPost
for the tests
- Fix compilation with resource-pool <0.3 (#51)
This is an experimental release
- Add
queryOne_
, which takes no params and returns 0 or 1 results. - Add
FieldModifiers
deriving option, which takes multiple modifiers:StripPrefix (prefix :: Symbol)
: You can remove a certain prefix from your field namesCamelTo (separator :: Symbol)
and its variants,CamelToSnake
andCamelToKebab
: 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
selectOneWhereIn
that can match a row's column in a value of user-provided values - Add
selectOrderBy
to 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 ofwithPool
reflects the removal ofMonadBaseControl
from the upstream. - The
prod
Cabal flag is introduced. At this time, it disables the stdout logging of queries - Add an
upsert
function - Stop filtering out unknown fields passed to
_where
. PostgreSQL will report them better than we do.
- First version. Released on an unsuspecting world.