Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
mockSelect :: Storable backend k l a => Condition backend a -> SelectClauses backend a -> [Entity a] -> Mock (StoreMock backend) () Source #
mockSelect_ :: Storable backend k l a => Condition backend a -> [Entity a] -> Mock (StoreMock backend) () Source #
mockFailingSelect :: Storable backend k l a => Condition backend a -> SelectClauses backend a -> SeakaleError -> Mock (StoreMock backend) () Source #
mockCount :: Storable backend k l a => Condition backend a -> Integer -> Mock (StoreMock backend) () Source #
mockFailingCount :: Storable backend k l a => Condition backend a -> SeakaleError -> Mock (StoreMock backend) () Source #
mockGetMany :: (Storable backend k l a, ToRow backend k (EntityID a)) => [EntityID a] -> [Entity a] -> Mock (StoreMock backend) () Source #
mockGet :: (Storable backend k l a, ToRow backend k (EntityID a)) => EntityID a -> a -> Mock (StoreMock backend) () Source #
mockFailingGetMany :: (Storable backend k l a, ToRow backend k (EntityID a)) => [EntityID a] -> SeakaleError -> Mock (StoreMock backend) () Source #
mockFailingGet :: (Storable backend k l a, ToRow backend k (EntityID a)) => EntityID a -> SeakaleError -> Mock (StoreMock backend) () Source #
mockSelectJoin :: Storable backend k l a => JoinRelation backend k l a -> Condition backend a -> SelectClauses backend a -> [Entity a] -> Mock (StoreMock backend) () Source #
mockFailingSelectJoin :: Storable backend k l a => JoinRelation backend k l a -> Condition backend a -> SelectClauses backend a -> SeakaleError -> Mock (StoreMock backend) () Source #
mockCountJoin :: Storable backend k l a => JoinRelation backend k l a -> Condition backend a -> Integer -> Mock (StoreMock backend) () Source #
mockFailingCountJoin :: Storable backend k l a => JoinRelation backend k l a -> Condition backend a -> SeakaleError -> Mock (StoreMock backend) () Source #
mockInsertMany :: (Storable backend k l a, Eq a) => [a] -> [EntityID a] -> Mock (StoreMock backend) () Source #
mockInsert :: (Storable backend k l a, Eq a) => a -> EntityID a -> Mock (StoreMock backend) () Source #
mockFailingInsertMany :: (Storable backend k l a, Eq a) => [a] -> SeakaleError -> Mock (StoreMock backend) () Source #
mockFailingInsert :: (Storable backend k l a, Eq a) => a -> SeakaleError -> Mock (StoreMock backend) () Source #
mockUpdateMany :: Storable backend k l a => UpdateSetter backend a -> Condition backend a -> Integer -> Mock (StoreMock backend) () Source #
mockUpdate :: (Storable backend k l a, ToRow backend k (EntityID a)) => EntityID a -> UpdateSetter backend a -> Mock (StoreMock backend) () Source #
mockFailingUpdateMany :: Storable backend k l a => UpdateSetter backend a -> Condition backend a -> SeakaleError -> Mock (StoreMock backend) () Source #
mockFailingUpdate :: (Storable backend k l a, ToRow backend k (EntityID a)) => EntityID a -> UpdateSetter backend a -> SeakaleError -> Mock (StoreMock backend) () Source #
mockDeleteMany :: Storable backend k l a => Condition backend a -> Integer -> Mock (StoreMock backend) () Source #
mockDelete :: (Storable backend k l a, ToRow backend k (EntityID a)) => EntityID a -> Mock (StoreMock backend) () Source #
mockFailingDeleteMany :: Storable backend k l a => Condition backend a -> SeakaleError -> Mock (StoreMock backend) () Source #
mockFailingDelete :: (Storable backend k l a, ToRow backend k (EntityID a)) => EntityID a -> SeakaleError -> Mock (StoreMock backend) () Source #
runSelect :: Typeable backend => backend -> Mock (StoreMock backend) b -> Select backend a -> Either SeakaleError a Source #
runSelectT :: (Monad m, Typeable backend) => backend -> Mock (StoreMock backend) b -> SelectT backend m a -> m (Either SeakaleError a) Source #
runStore :: Typeable backend => backend -> Mock (StoreMock backend) b -> Store backend a -> Either SeakaleError a Source #
runStoreT :: (Monad m, Typeable backend) => backend -> Mock (StoreMock backend) b -> StoreT backend m a -> m (Either SeakaleError a) Source #
runSelect' :: Typeable backend => backend -> Mock (StoreMock backend) b -> Select backend a -> (Either SeakaleError a, Mock (StoreMock backend) b) Source #
runSelectT' :: (Monad m, Typeable backend) => backend -> Mock (StoreMock backend) b -> SelectT backend m a -> m (Either SeakaleError a, Mock (StoreMock backend) b) Source #
runStore' :: Typeable backend => backend -> Mock (StoreMock backend) b -> Store backend a -> (Either SeakaleError a, Mock (StoreMock backend) b) Source #
runStoreT' :: (Monad m, Typeable backend) => backend -> Mock (StoreMock backend) b -> StoreT backend m a -> m (Either SeakaleError a, Mock (StoreMock backend) b) Source #
module Database.Seakale.Tests.Mock