- Added
pgSelectWith
, a combinator likeselectWith
which allows to nest common table expressions in subqueries (#720).
- Added the ability to migrate Postgres' array types (#354).
- Remove dependency on
haskell-src-exts
, which was not in use anymore.
- Fixed an issue where columns of type
Maybe (Vector a)
did not marshall correctly from the database. In particular, querying aNothing
would returnJust (Vector.fromList [])
instead (#692).
- Fixed an issue where inexact numeric literals (e.g. Haskell type
Double
) were implicitly converted to PostgresNUMERIC
, triggering a runtime conversion error (#700).
- Better error messages on column type mismatches (#696).
- Added support for creating and dropping database schemas and associated tables with
createDatabaseSchema
,dropDatabaseSchema
, andcreateTableWithSchema
(#716).
- Make
runBeamPostgres
andrunBeamPostgresDebug
easier to find (#663).
- Loosen some version bounds
- Make sure lateral join names do not overlap
- Fix
bool_or
- Add
runSelectReturningFirst
IN (SELECT ...)
syntax viainQuery_
- Aeson 2.0 support
- New
conduit
streaming variants which work directly inMonadResource
- Heterogeneous variant of
ilike_
:ilike_'
- Postgres-specific
EXTRACT
fields - GHC 9.2 and 9.0 support
- Throw correct exception for row errors in
conduit
implementation - Support emitting UUID values in context where type cannot be inferred by Postgres
MonadBase
andMonadBaseControl
instances forPg
- Fix possible memory corruption by copying row data
- Remove invalid parentheses emitted by
pgUnnest
- Removed instances for machine-dependent ambiguous integer types
Int
andWord
- Fixed types for some functions that only work with
jsonb
and notjson
- Support for
in_
on row values - Various Postgres regex functions
- Expose
fromPgIntegral
andfromPgScientificOrIntegral
- Add
liftIOWithHandle :: (Connection -> IO a) -> Pg a
- Add
getDbConstraintsForSchemas
to get constraints without relying on the state of the connection - Poly-kinded instances for
Data.Tagged.Tagged
- Add
HasDefaultDatatype
forUTCTime
- Support for specifically-sized
SqlSerial
integers (smallserial
,serial
,bigserial
) - Predicate detection for extensions
pgArrayToJson
forarray_to_json
- Extension definition and all functions provided by
uuid-ossp
- GHC 8.8 support
- Only detect primary keys of tables in visible schemas
- Fix emitting of
DECIMAL
type - Report JSON correct decoding errors instead of throwing
UnexpectedNull
runReturningOne
andrunResturningList
now fetch all rows at once instead of using cursors
Add Semigroup
instances to prepare for GHC 8.4 and Stackage nightly
Add runBeamPostgres
and runBeamPostgresDebug
functions.
Initial hackage beam-postgres