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

Database.Persist.SqlBackend.StatementCache

Synopsis

Documentation

data StatementCache #

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

Since: 2.13.3

mkCacheKeyFromQuery :: Text -> StatementCacheKey #

Construct a StatementCacheKey from a raw SQL query.

data MkStatementCache #

Configuration parameters for creating a custom statement cache

Since: 2.13.3

Constructors

MkStatementCache 

Fields

mkSimpleStatementCache :: IORef (Map Text Statement) -> MkStatementCache #

Make a simple statement cache that will cache statements if they are not currently cached.

Since: 2.13.3

mkStatementCache :: MkStatementCache -> StatementCache #

Create a statement cache.

Since: 2.13.0