postgresql-binary-0.3.0: Encoders and decoders for the PostgreSQL's binary format
Safe Haskell | None |
---|---|
Language | Haskell2010 |
PostgreSQLBinary.Array
Description
An intermediate array representation and utilities for its (de)composition.
Synopsis
typeData = ([Dimension], [Value],Bool,Word32)Source
A representation of a data serializable to the PostgreSQL array binary format.
Consists of a list of dimensions, a list of encoded elements, a flag specifying, whether it contains any nulls, and an oid.
typeDimension = (Word32,Word32)Source
A width and a lower bound.
Currently the lower bound is only allowed to have a value of1
.
typeValue =MaybeByteStringSource
An encoded value.Nothing
if it represents aNULL
.
asSingleton ::Data ->MaybeValueSource
Access a value of data, if the data represents a single value.
fromListUnsafe :: [Data] ->DataSource
Construct from a non-empty list, taking the shared parameters from the first element.
Produced byHaddock version 2.15.0