Safe Haskell | None |
---|---|
Language | GHC2024 |
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 SingleRunCache = ResultCache '[LoadQuery :: (Type -> Type) -> Type -> Type] #
type MultiRunCache = ResultCache '[SqlParse :: (Type -> Type) -> Type -> Type, SqlRender :: (Type -> Type) -> Type -> Type] #
initSpecCache :: MonadIO m => m SpecCache #
clearSingleCache :: MonadIO m => SpecCache -> m () #