rfc-0.0.0.17: Robert Fischer's Common library

Safe HaskellNone
LanguageHaskell2010

RFC.Psql

Documentation

class (MonadIO m, MonadBaseControl IO m) => HasPsql m where Source #

Minimal complete definition

getPsqlPool

query :: (MonadIO m, FromRow r, ToRow q) => Connection -> Query -> q -> m [r] Source #

query_ :: (MonadIO m, FromRow r) => Connection -> Query -> m [r] Source #

query1 :: (MonadIO m, FromRow r, ToRow q) => Connection -> Query -> q -> m (Maybe r) Source #

query1_ :: (MonadIO m, FromRow r) => Connection -> Query -> m (Maybe r) Source #

query1Else :: (MonadIO m, FromRow r, ToRow q, Exception e) => Connection -> Query -> q -> e -> m (Maybe r) Source #

query1Else_ :: (MonadIO m, FromRow r, Exception e) => Connection -> Query -> e -> m (Maybe r) Source #

execute :: (MonadIO m, ToRow q) => Connection -> Query -> q -> m Int64 Source #

executeMany :: (MonadIO m, ToRow q) => Connection -> Query -> [q] -> m Int64 Source #