hpqtypes-1.5.1.1: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Internal.QueryResult

Synopsis

Documentation

data QueryResult t Source #

Representation of a query result. Provides Functor and Foldable instances for data transformation and extraction appropriately.

Constructors

FromRow row => QueryResult 

Fields

Instances

Functor QueryResult Source # 

Methods

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

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

Foldable QueryResult Source # 

Methods

fold :: Monoid m => QueryResult m -> m #

foldMap :: Monoid m => (a -> m) -> QueryResult a -> m #

foldr :: (a -> b -> b) -> b -> QueryResult a -> b #

foldr' :: (a -> b -> b) -> b -> QueryResult a -> b #

foldl :: (b -> a -> b) -> b -> QueryResult a -> b #

foldl' :: (b -> a -> b) -> b -> QueryResult a -> b #

foldr1 :: (a -> a -> a) -> QueryResult a -> a #

foldl1 :: (a -> a -> a) -> QueryResult a -> a #

toList :: QueryResult a -> [a] #

null :: QueryResult a -> Bool #

length :: QueryResult a -> Int #

elem :: Eq a => a -> QueryResult a -> Bool #

maximum :: Ord a => QueryResult a -> a #

minimum :: Ord a => QueryResult a -> a #

sum :: Num a => QueryResult a -> a #

product :: Num a => QueryResult a -> a #

ntuples :: QueryResult t -> Int Source #

Extract number of returned tuples (rows) from query result.

nfields :: QueryResult t -> Int Source #

Extract number of returned fields (columns) from query result.