Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- query :: (ToRow q, FromRow r, Unbox r) => Connection -> Query -> q -> IO (Vector r)
- query_ :: (FromRow r, Unbox r) => Connection -> Query -> IO (Vector r)
- queryWith :: (ToRow q, Unbox r) => RowParser r -> Connection -> Query -> q -> IO (Vector r)
- queryWith_ :: Unbox r => RowParser r -> Connection -> Query -> IO (Vector r)
- returning :: (ToRow q, FromRow r, Unbox r) => Connection -> Query -> [q] -> IO (Vector r)
- returningWith :: (ToRow q, Unbox r) => RowParser r -> Connection -> Query -> [q] -> IO (Vector r)
Documentation
query :: (ToRow q, FromRow r, Unbox r) => Connection -> Query -> q -> IO (Vector r) Source #
Perform a SELECT
or other SQL query that is expected to return
results. All results are retrieved and converted before this
function returns.
query_ :: (FromRow r, Unbox r) => Connection -> Query -> IO (Vector r) Source #
A version of query
that does not perform query substitution.
queryWith :: (ToRow q, Unbox r) => RowParser r -> Connection -> Query -> q -> IO (Vector r) Source #
A version of query
taking parser as argument
queryWith_ :: Unbox r => RowParser r -> Connection -> Query -> IO (Vector r) Source #
A version of query_
taking parser as argument