polysemy-db-0.0.1.0: Polysemy effects for databases
Safe HaskellSafe-Inferred
LanguageHaskell2010

Polysemy.Db.Interpreter.Query

Documentation

class QueryCheckResult f where Source #

Methods

queryCheckResult :: [a] -> Either DbError (f a) Source #

Instances

Instances details
QueryCheckResult Maybe Source # 
Instance details

Defined in Polysemy.Db.Interpreter.Query

QueryCheckResult [] Source # 
Instance details

Defined in Polysemy.Db.Interpreter.Query

Methods

queryCheckResult :: [a] -> Either DbError [a] Source #

interpretQueryAtomicState :: forall i a d q f r. Member (AtomicState (PureStore i a)) r => QueryCheckResult f => (q -> Uid i a -> Maybe d) -> InterpreterFor (Query q (f d) !! DbError) r Source #

interpretQueryConc :: Ord i => QueryCheckResult f => Member (Embed IO) r => (q -> Uid i a -> Maybe d) -> [Uid i a] -> InterpreterFor (Query q (f d) !! DbError) r Source #

interpretQueryStoreConc :: Ord i => Show i => QueryCheckResult f => Member (Embed IO) r => (q -> Uid i a -> Maybe d) -> [Uid i a] -> InterpretersFor [Query q (f d) !! DbError, Store i a !! DbError, AtomicState (PureStore i a)] r Source #

interpretQueryStoreAny :: forall q d i e r. Member (Store i d !! e) r => (q -> d -> Bool) -> InterpreterFor (Query q Bool !! e) r Source #