napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Run.Effects.Interceptors.Cache

Documentation

interceptSqlParseCache :: forall (m :: Type -> Type) (r :: EffectRow) (rs :: [(Type -> Type) -> Type -> Type]) a. (Members '[Embed m, SqlParse :: (Type -> Type) -> Type -> Type] r, MonadIO m, r ~ ((SqlParse :: (Type -> Type) -> Type -> Type) ': rs)) => IORef MultiRunCache -> Sem r a -> Sem r a #

interceptSqlRenderCache :: forall (m :: Type -> Type) (r :: EffectRow) (rs :: [(Type -> Type) -> Type -> Type]) a. (Members '[Embed m, SqlRender :: (Type -> Type) -> Type -> Type] r, MonadIO m, r ~ ((SqlRender :: (Type -> Type) -> Type -> Type) ': rs)) => IORef MultiRunCache -> Sem r a -> Sem r a #

interceptLoadQueryCache :: forall (m :: Type -> Type) (r :: EffectRow) (rs :: [(Type -> Type) -> Type -> Type]) a. (Members '[Embed m, LoadQuery :: (Type -> Type) -> Type -> Type] r, MonadIO m, r ~ ((LoadQuery :: (Type -> Type) -> Type -> Type) ': rs)) => IORef SingleRunCache -> Sem r a -> Sem r a #

type MultiRunCache = ResultCache '[SqlParse :: (Type -> Type) -> Type -> Type, SqlRender :: (Type -> Type) -> Type -> Type] #