Readme for pgstream-0.1.0.3

pgstream

Streaming of Postgres through the binary protocol into Haskell. Uses attoparsec
and some hand-written kernels for array extraction. Results are streamed into
vectors or batched into serial or parallel
Conduit
pipelines for stream composition.

Installation

$ cabal install pg_stream.cabal

Usage

Connections

Connections to Postgres are established with the connect function yielding
the connection object.

If the types of arguments are constrained by inference then no annotations are
necessary. Otherwise annotations are needed to refine the Num/String instances
into concrete types so they can be serialized and sent to Postgres.

If the result set type is given as Maybe a then any missing value are
manifest as Nothing values. And all concrete values are Just.
Effectively makes errors from null values used in unchecked logic
unrepresentable as any function which consumes a potentially nullable field is
forced by the type system to handle both cases.