freer-extras-1.2.0.0: Useful extensions to simple-freer
Safe Haskell None
Language Haskell2010

Control.Monad.Freer.Extras.Beam.Effects

Documentation

data BeamEffect dbt r where Source #

addRowsInBatches :: forall dbt table db effs. ( BeamableDb dbt table, Member ( BeamEffect dbt) effs) => Int -> DatabaseEntity dbt db ( TableEntity table) -> [table Identity ] -> Eff effs () Source #

addRows :: forall dbt table effs. ( BeamableDb dbt table, Member ( BeamEffect dbt) effs) => SqlInsert dbt table -> Eff effs () Source #

updateRows :: forall dbt table effs. ( Beamable table, Member ( BeamEffect dbt) effs) => SqlUpdate dbt table -> Eff effs () Source #

deleteRows :: forall dbt table effs. ( Beamable table, Member ( BeamEffect dbt) effs) => SqlDelete dbt table -> Eff effs () Source #

selectList :: forall dbt a effs. ( FromBackendRow dbt a, Member ( BeamEffect dbt) effs) => SqlSelect dbt a -> Eff effs [a] Source #

selectOne :: forall dbt a effs. ( FromBackendRow dbt a, Member ( BeamEffect dbt) effs) => SqlSelect dbt a -> Eff effs ( Maybe a) Source #

combined :: forall dbt effs. Member ( BeamEffect dbt) effs => [ BeamEffect dbt ()] -> Eff effs () Source #