Safe Haskell | None |
---|---|
Language | Haskell2010 |
PostgreSQLBinary.Decoder
Contents
- type D a = ByteString -> Either Text a
- int :: (Integral a, Bits a) => D a
- float4 :: D Float
- float8 :: D Double
- numeric :: D Scientific
- char :: D Char
- text :: D Text
- bytea :: D ByteString
- date :: D Day
- time :: D TimeOfDay
- timetz :: D (TimeOfDay, TimeZone)
- timestamp :: D UTCTime
- timestamptz :: D LocalTime
- interval :: D DiffTime
- bool :: D Bool
- uuid :: D UUID
- array :: D Data
Documentation
type D a = ByteString -> Either Text a Source
A function for decoding a byte string into a value.
Numbers
numeric :: D Scientific Source
Text
bytea :: D ByteString Source