psql-0.0.0: PostgreSQL client
Safe HaskellNone
LanguageHaskell2010

PostgreSQL.Result.Cell

Description

Things in this module are dedicated to parsing Postgres values independent of their format or type.

Synopsis

Documentation

newtype Cell a Source #

Cell value parser

Since: 0.0.0

Constructors

Cell 

Fields

Instances

Instances details
Functor Cell Source #

Since: 0.0.0

Instance details

Defined in PostgreSQL.Result.Cell

Methods

fmap :: (a -> b) -> Cell a -> Cell b #

(<$) :: a -> Cell b -> Cell a #

Alt Cell Source #

Since: 0.0.0

Instance details

Defined in PostgreSQL.Result.Cell

Methods

(<!>) :: Cell a -> Cell a -> Cell a

some :: Applicative Cell => Cell a -> Cell [a]

many :: Applicative Cell => Cell a -> Cell [a]

ignored :: Cell () Source #

Do not parse the cell at all.

Since: 0.0.0

raw :: Cell ByteString Source #

Get the raw cell value. Does not allow NULL.

Since: 0.0.0

text :: Cell Text Source #

Parse as UTF-8 Text. Does not allow NULL.

Since: 0.0.0

readable :: Read a => Cell a Source #

Parse something using its Read instance via text. Rejects NULL values.

Since: 0.0.0

validate :: Cell a -> (a -> Either Text b) -> Cell b Source #

Validate the given cell parser.

Since: 0.0.0