postgresql-simple-0.6.2: Mid-Level PostgreSQL client library

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Simple.Vector.Unboxed

Synopsis

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

returning :: (ToRow q, FromRow r, Unbox r) => Connection -> Query -> [q] -> IO (Vector r) Source #

Execute INSERT ... RETURNING, UPDATE ... RETURNING, or other SQL query that accepts multi-row input and is expected to return results.

returningWith :: (ToRow q, Unbox r) => RowParser r -> Connection -> Query -> [q] -> IO (Vector r) Source #

A version of returning taking parser as argument