Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data QueryResult t = FromRow row => QueryResult {}
- ntuples :: QueryResult t -> Int
- nfields :: QueryResult t -> Int
Documentation
data QueryResult t Source #
Representation of a query result. Provides Functor
and Foldable
instances for data transformation and
extraction appropriately.
FromRow row => QueryResult | |
Instances
Functor QueryResult Source # | |
Defined in Database.PostgreSQL.PQTypes.Internal.QueryResult fmap :: (a -> b) -> QueryResult a -> QueryResult b # (<$) :: a -> QueryResult b -> QueryResult a # | |
Foldable QueryResult Source # | |
Defined in Database.PostgreSQL.PQTypes.Internal.QueryResult 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.