array package:postgresql-binary
Turn an array builder into final value. The first parameter is OID of
the element type.
An efficient generic array decoder, which constructs the result value
in place while parsing.
Here's how you can use it to produce a specific array value decoder:
x :: Value [ [ Text ] ]
x =
array (dimensionArray replicateM (fmap catMaybes (dimensionArray replicateM (nullableValueArray text))))
Abstraction for encoding into multidimensional array.
A helper for encoding of arrays of single dimension from foldables.
The first parameter is OID of the element type.
A helper for encoding of arrays of single dimension from vectors. The
first parameter is OID of the element type.
A function for parsing a dimension of an array. Provides support for
multi-dimensional arrays.
Accepts:
Lift a value
Value into
Array for parsing of nullable
leaf values.
Lift a value
Value into
Array for parsing of
non-nullable leaf values.
A helper for encoding of arrays of single dimension from vectors. The
first parameter is OID of the element type.