Hoogle Search
Within LTS Haskell 23.26 (ghc-9.8.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
statementCacheInsert :: MkStatementCache -> StatementCacheKey -> Statement -> IO ()persistent Database.Persist.SqlBackend.StatementCache Put a new statement into the cache. An immediate lookup of the statement MUST return the inserted statement for the given cache key. Depending on the implementation, the statement cache MAY choose to evict other statements from the cache within this function.
ISRInsertGet :: Text -> Text -> InsertSqlResultpersistent-mtl Database.Persist.Sql.Shim No documentation available.
-
persistent-mtl Database.Persist.Sql.Shim A type class which is used to witness that a type is safe to insert into the database without providing a primary key. The TemplateHaskell function mkPersist will generate instances of this class for any entity that it works on. If the entity has a default primary key, then it provides a regular instance. If the entity has a Primary natural key, then this works fine. But if the entity has an Id column with no default=, then this does a TypeError and forces the user to use insertKey.