Safe Haskell | None |
---|---|
Language | Haskell2010 |
PostgreSQL.Binary.Encoder
Contents
Synopsis
run ::Encoder a -> a ->ByteStringSource
A UTF-8-encoded char.
Note that since it's UTF-8-encoded not the "char" but the "text" OID should be used with it.
hstore :: (forall a. (a -> (Text,MaybeText) -> a) -> a -> b -> a) ->Encoder bSource
A polymorphic in-placeHSTORE
encoder.
Accepts:
foldl
function (e.g.,Data.Foldable.foldl'
), which determines the input value.Here's how you can use it to produce a specific encoder:
hashMapHStore :: Encoder (Data.HashMap.Strict.HashMap Text (Maybe Text))hashMapHStore = hstore foldl'
array ::Word32 ->ArrayEncoder a ->Encoder aSource
dataArrayEncoder aSource
arrayValue ::Encoder a ->ArrayEncoder aSource
arrayNullableValue ::Encoder a ->ArrayEncoder (Maybe a)Source
arrayDimension :: (forall a. (a -> b -> a) -> a -> c -> a) ->ArrayEncoder b ->ArrayEncoder cSource
Produced byHaddock version 2.16.1