Repository navigation
1.7.0.0
Removed
- Removed support for
network-ip. We still supportiproute.
Added
-
Add support for prepared statements. To use prepared statements, simply use
prepare runinstead ofrunwith a function that passes the parameters to your statement. -
Added new
Encodertype with three members:binary, which is the Hasql binary encoder,textwhich encodes a type in PostgreSQL's text format (needed for nested arrays) andquote, which is the does the thing that the function we previously calledencodedoes (i.e.,a -> Opaleye.PrimExpr). -
Add
elemandelem1toRel8.Arrayfor testing if an element is contained in[]andNonEmptyExprs. -
Support hasql-1.9
-
Support GHC-9.12
Changed
-
Several changes to
TypeInformation:-
Changed the
encodefield ofTypeInformationto beEncoder ainstead ofa -> Opaleye.PrimExpr. -
Moved the
delimiterfield ofDecoderinto the top level ofTypeInformation, as it's not "decoding" specific, it's also used when "encoding". -
Renamed the
parserfield ofDecodertotext, to mirror thetextfield of the newEncodertype.
All of this will break any downstream code that uses a completely custom
DBTypeimplementation, but anything that usesReadShow,Enum,Composite,JSONBEncodedorparseTypeInformationwill continue working as before (which should cover all common cases). -
-
Stop exporting
DecoderandEncoderfrom theRel8module. These can now be found inRel8.DecoderandRel8.Encoder. -
Some changes were made to the
DBEnumtype class:Enumablewas removed as a superclass constraint. It is still used to provide the default implementation of theDBEnumclass.- A new method,
enumerate, was added to theDBEnumclass (with the default implementation provided byEnumable).
This is unlikely to break any existing
DBEnuminstances, it just allows some instances that weren't possible before (e.g., for types that are notGeneric).