Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
defaultPersistSettings :: PersistSettingspersistent Database.Persist.Quasi.PersistSettings No documentation available.
defaultPersistSettings :: PersistSettingspersistent Database.Persist.Quasi.PersistSettings.Internal No documentation available.
type
SqlPersistM = SqlPersistT NoLoggingT ResourceT IOpersistent Database.Persist.Sql No documentation available.
type
SqlPersistT = ReaderT SqlBackendpersistent Database.Persist.Sql No documentation available.
-
persistent Database.Persist.Sql No documentation available.
-
persistent Database.Persist.Sql No documentation available.
-
persistent Database.Persist.Sql No documentation available.
class
HasPersistBackend backendpersistent Database.Persist.Sql.Types.Internal Class which allows the plucking of a BaseBackend backend from some larger type. For example, instance HasPersistBackend (SqlReadBackend, Int) where type BaseBackend (SqlReadBackend, Int) = SqlBackend persistBackend = unSqlReadBackend . fst
class HasPersistBackend backend =>
IsPersistBackend backendpersistent Database.Persist.Sql.Types.Internal Class which witnesses that backend is essentially the same as BaseBackend backend. That is, they're isomorphic and backend is just some wrapper over BaseBackend backend.
mkPersistBackend :: IsPersistBackend backend => BaseBackend backend -> backendpersistent Database.Persist.Sql.Types.Internal This function is how we actually construct and tag a backend as having read or write capabilities. It should be used carefully and only when actually constructing a backend. Careless use allows us to accidentally run a write query against a read-only database.