Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data StatementCache
- data StatementCacheKey
- mkCacheKeyFromQuery :: Text -> StatementCacheKey
- data MkStatementCache = MkStatementCache {
- statementCacheLookup :: StatementCacheKey -> IO (Maybe Statement)
- statementCacheInsert :: StatementCacheKey -> Statement -> IO ()
- statementCacheClear :: IO ()
- statementCacheSize :: IO Int
- mkSimpleStatementCache :: IORef (Map Text Statement) -> MkStatementCache
- mkStatementCache :: MkStatementCache -> StatementCache
Documentation
data StatementCache Source #
A statement cache used to lookup statements that have already been prepared for a given query.
Since: 2.13.3
data StatementCacheKey Source #
mkCacheKeyFromQuery :: Text -> StatementCacheKey Source #
Construct a StatementCacheKey
from a raw SQL query.
data MkStatementCache Source #
Configuration parameters for creating a custom statement cache
Since: 2.13.3
MkStatementCache | |
|
mkSimpleStatementCache :: IORef (Map Text Statement) -> MkStatementCache Source #
Make a simple statement cache that will cache statements if they are not currently cached.
Since: 2.13.3
mkStatementCache :: MkStatementCache -> StatementCache Source #
Create a statement cache.
Since: 2.13.0