Hoogle Search

Within LTS Haskell 24.2 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. type PersistRecordBackend record backend = (PersistEntity record, PersistEntityBackend record ~ BaseBackend backend)

    persistent Database.Persist.Class

    A convenient alias for common type signatures

  2. type PersistStore a = PersistStoreWrite a

    persistent Database.Persist.Class

    A backwards-compatible alias for those that don't care about distinguishing between read and write queries. It signifies the assumption that, by default, a backend can write as well as read.

  3. class (Show BackendKey backend, Read BackendKey backend, Eq BackendKey backend, Ord BackendKey backend, PersistCore backend, PersistField BackendKey backend, ToJSON BackendKey backend, FromJSON BackendKey backend) => PersistStoreRead backend

    persistent Database.Persist.Class

    No documentation available.

  4. class (Show BackendKey backend, Read BackendKey backend, Eq BackendKey backend, Ord BackendKey backend, PersistStoreRead backend, PersistField BackendKey backend, ToJSON BackendKey backend, FromJSON BackendKey backend) => PersistStoreWrite backend

    persistent Database.Persist.Class

    No documentation available.

  5. type PersistUnique a = PersistUniqueWrite a

    persistent Database.Persist.Class

    A backwards-compatible alias for those that don't care about distinguishing between read and write queries. It signifies the assumption that, by default, a backend can write as well as read.

  6. class PersistStoreRead backend => PersistUniqueRead backend

    persistent Database.Persist.Class

    Queries against Unique keys (other than the id Key). Please read the general Persistent documentation to learn how to create Unique keys. Using this with an Entity without a Unique key leads to undefined behavior. A few of these functions require a single Unique, so using an Entity with multiple Uniques is also undefined. In these cases persistent's goal is to throw an exception as soon as possible, but persistent is still transitioning to that. SQL backends automatically create uniqueness constraints, but for MongoDB you must manually place a unique index on a field to have a uniqueness constraint.

  7. class (PersistUniqueRead backend, PersistStoreWrite backend) => PersistUniqueWrite backend

    persistent Database.Persist.Class

    Some functions in this module (insertUnique, insertBy, and replaceUnique) first query the unique indexes to check for conflicts. You could instead optimistically attempt to perform the operation (e.g. replace instead of replaceUnique). However,

    • there is some fragility to trying to catch the correct exception and determing the column of failure;
    • an exception will automatically abort the current SQL transaction.

  8. module Database.Persist.Class.PersistConfig

    No documentation available.

  9. class PersistConfig c

    persistent Database.Persist.Class.PersistConfig

    Represents a value containing all the configuration options for a specific backend. This abstraction makes it easier to write code that can easily swap backends.

  10. module Database.Persist.Class.PersistEntity

    No documentation available.

Page 2 of many | Previous | Next