Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
queryWith :: KnownNat (Width r) => RowEncoder p -> RowDecoder (Width r) r -> Connection -> Query (Width r) -> p -> IO (Either QueryError (Vector r)) Source #
queryWith_ :: RowEncoder p -> Connection -> Query n -> p -> IO (Either QueryError ()) Source #
query :: (ToSql p, FromSql r, KnownNat (Width r)) => Connection -> Query (Width r) -> p -> IO (Either QueryError (Vector r)) Source #
query_ :: ToSql p => Connection -> Query n -> p -> IO (Either QueryError ()) Source #
execParams :: RowEncoder p -> Connection -> ByteString -> p -> IO (Either QueryError Result) Source #
connectionError :: Connection -> Maybe a -> IO (Either Text a) Source #
lookupType :: Connection -> PgType -> IO (Either QueryError Oid) Source #
data IsolationLevel Source #
Instances
begin :: Connection -> IsolationLevel -> IO (Either QueryError ()) Source #
commit :: Connection -> IO (Either QueryError ()) Source #
rollback :: Connection -> IO (Either QueryError ()) Source #