Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
interceptSqlParseCache :: (Members [Embed m, SqlParse] r, MonadIO m, r ~ (SqlParse : rs)) => IORef MultiRunCache -> Sem r a -> Sem r a #
interceptSqlRenderCache :: (Members [Embed m, SqlRender] r, MonadIO m, r ~ (SqlRender : rs)) => IORef MultiRunCache -> Sem r a -> Sem r a #
interceptLoadQueryCache :: (Members [Embed m, LoadQuery] r, MonadIO m, r ~ (LoadQuery : rs)) => IORef SingleRunCache -> Sem r a -> Sem r a #
type SingleRunCache = ResultCache '[LoadQuery] #
type MultiRunCache = ResultCache '[SqlParse, SqlRender] #
initSpecCache :: MonadIO m => m SpecCache #
clearSingleCache :: MonadIO m => SpecCache -> m () #