pqi

pqi

pqi reproduces the API surface of the postgresql-libpq package, but reifies the connection (and its results) as a type class instead of a single concrete type. This lets callers program against one interface and pick an adapter at the type level:

  • pqi-ffi — a thin adapter backed by the C libpq library via postgresql-libpq.
  • pqi-native — a pure-Haskell adapter that speaks the PostgreSQL wire protocol directly.

This package ships only the interface: the typeclasses, types and a couple of connection-independent helpers.

Modules

pqi-0.0.1.0