Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type E a = a -> ByteString
- int2 :: E (Either Int16 Word16)
- int4 :: E (Either Int32 Word32)
- int8 :: E (Either Int64 Word64)
- float4 :: E Float
- float8 :: E Double
- numeric :: E Scientific
- char :: E Char
- text :: E (Either Text Text)
- bytea :: E (Either ByteString ByteString)
- date :: E Day
- time :: Bool -> E TimeOfDay
- timetz :: Bool -> E (TimeOfDay, TimeZone)
- timestamp :: E UTCTime
- timestamptz :: E LocalTime
- interval :: E DiffTime
- bool :: E Bool
- uuid :: E UUID
- array :: E Data
Documentation
type E a = a -> ByteString Source
A function for rendering a value into a byte string.
Numbers
numeric :: E Scientific Source
Text
A UTF-8-encoded char.
Note that since it's UTF-8-encoded not a "char" but a "text" OID should be used with it.
bytea :: E (Either ByteString ByteString) Source
Either a strict or a lazy bytestring.
Date and Time
time :: Bool -> E TimeOfDay Source
Encoding strategy depends on whether the server supports integer_datetimes
.
timetz :: Bool -> E (TimeOfDay, TimeZone) Source
Encoding strategy depends on whether the server supports integer_datetimes
.