postgresql-binary-0.12.4.3: Encoders and decoders for the PostgreSQL's binary format
Safe HaskellNone
LanguageHaskell2010

PostgreSQL.Binary.Encoding

Synopsis

Encoding

array :: Word32 -> Array -> Encoding Source #

Turn an array builder into final value. The first parameter is OID of the element type.

array_foldable :: Foldable foldable => Word32 -> (element -> Maybe Encoding) -> foldable element -> Encoding Source #

A helper for encoding of arrays of single dimension from foldables. The first parameter is OID of the element type.

array_vector :: Word32 -> (element -> Encoding) -> Vector element -> Encoding Source #

A helper for encoding of arrays of single dimension from vectors. The first parameter is OID of the element type.

nullableArray_vector :: Word32 -> (element -> Encoding) -> Vector (Maybe element) -> Encoding Source #

A helper for encoding of arrays of single dimension from vectors. The first parameter is OID of the element type.

hStore_foldable :: Foldable foldable => foldable (Text, Maybe Text) -> Encoding Source #

A polymorphic HSTORE encoder.

hStore_hashMap :: HashMap Text (Maybe Text) -> Encoding Source #

HSTORE encoder from HashMap.

hStore_map :: Map Text (Maybe Text) -> Encoding Source #

HSTORE encoder from Map.

Primitives

Time

Some of the functions in this section are distinguished based on the integer_datetimes setting of the server.

JSON

Array

data Array Source #

Abstraction for encoding into multidimensional array.

dimensionArray :: (forall b. (b -> a -> b) -> b -> c -> b) -> (a -> Array) -> c -> Array Source #