BSD-3-Clause licensed by Scrive AB
This version can be pinned in stack with:hpqtypes-1.5.1.1@sha256:6915ef5e4cd5c22aee26cf85b2d6b86947ada1b0c39d39b6cadcc6bf572e454c,10230

Module documentation for 1.5.1.1

hpqtypes Hackage version Build Status

Efficient and easy-to-use bindings to (slightly modified) libpqtypes, lipq extension that adds support for binary transport format and composite types.

Since modified libpqtypes is used, its source code is bundled along with the bindings. The differences between verbatim libpqtypes and the one used by this package:

  • per-thread global error structures were replaced by explicit passing of these structures around so that there is no need to use bound threads.

  • handlers that take values to be put into the database were modified to always expect pointers to objects, as opposed to previous situation where primitives were being taken by value (which was convenient if the library was used directly from C, but created inconsistency problems while trying to define bindings in a sensible way).

Examples can be found in the examples directory.

Changes

hpqtypes-1.5.1.1 (2016-09-22)

  • fix test suite compilation with GHC 8
  • fix lower bound of base version
  • fix compilation with ‘cabal new-build’ and Cabal < 1.24

hpqtypes-1.5.1 (2016-07-04)

  • Do not use linux/limits.h

hpqtypes-1.5.0 (2016-06-21)

  • remove orphan MonadDB instances
  • turn ConnectionSource into indexed datatype
  • remove Binary wrapper and (de)serialize ByteString as bytea
  • use Text instead of ByteString where appropriate
  • use UTF-8 client encoding by default for compatibility with Text

hpqtypes-1.4.5 (2016-05-30)

  • fix compilation with Cabal 1.24 and GHC 8.0.1

hpqtypes-1.4.4 (2016-01-19)

  • fix lower bound of base version

hpqtypes-1.4.3 (2015-10-09)

  • remove invalid FromSQL ZonedTime instance

hpqtypes-1.4.2 (2015-06-08)

  • use strict StateT for DBT
  • use catch in withTransaction only if it might be used

hpqtypes-1.4.1 (2015-05-15)

  • add support for json and jsonb sql types
  • add support for lazy ByteString and Text

hpqtypes-1.4.0 (2015-02-26)

  • add support for QuickCheck 2.7
  • add support for notifications
  • remove SpaceMonoid, use Monoid and IsString instead
  • use data-default-class package for default values
  • drop Single, use Identity functor instead
  • remove someSQL from IsSQL class
  • remove foldlM/foldrM from MonadDB and make QueryResult instance of Foldable instead
  • add support for a type representing cartesian product of rows for more composability
  • do not wrap exceptions thrown from DBT in DBException unless explicitly requested
  • provide custom Show instance for Interval
  • add ToSQL instance for Int

hpqtypes-1.3.2 (2015-01-27)

  • replace wrong package uploaded to hackage

hpqtypes-1.3.1 (2015-01-26)

  • add support for XML type

hpqtypes-1.3.0 (2015-01-09)

  • composite: make {from,to}Composite functions pure

hpqtypes-1.2.5 (2015-01-04)

  • add support for monad-control >= 1.0.0.1

hpqtypes-1.2.4 (2014-12-08)

  • add IsString instance for Savepoint newtype