pg-store-0.1.0: Simple storage interface to PostgreSQL

Copyright(c) Ole Krüger 2015-2016
LicenseBSD3
MaintainerOle Krüger <ole@vprsm.de>
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Store.Result

Contents

Description

 

Synopsis

Result processor

data ResultError Source #

Error that occured during result processing

Constructors

TooFewColumnsError Column

Occurs when you're trying to access a column that does not exist.

UnpackError Row Column Oid Format

The value at a given row and column could not be unpacked.

processResult :: Result -> ResultProcessor a -> ExceptT ResultError IO [a] Source #

Process the entire result set.

processOneResult :: Result -> ResultProcessor a -> ExceptT ResultError IO (Maybe a) Source #

Process one row of the result set.

skipColumn :: ResultProcessor () Source #

Move cursor to the next column.

unpackColumn :: Column a => ResultProcessor a Source #

Unpack the current column and move the cursor to the next column.