persistent-2.13.3.2: Type-safe, multi-backend data serialization.
Safe HaskellNone
LanguageHaskell2010

Database.Persist.SqlBackend.StatementCache

Synopsis

Documentation

data StatementCache Source #

A statement cache used to lookup statements that have already been prepared for a given query.

Since: 2.13.3

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

Constructors

MkStatementCache 

Fields

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