Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

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

  1. 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.PersistStore

    No documentation available.

  2. module Database.Persist.Class.PersistUnique

    No documentation available.

  3. class PersistStoreRead backend => PersistUniqueRead backend

    persistent Database.Persist.Class.PersistUnique

    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.

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

    persistent Database.Persist.Class.PersistUnique

    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.

  5. module Database.Persist.PersistValue

    This module contains an intermediate representation of values before the backends serialize them into explicit database types.

  6. PersistArray :: [PersistValue] -> PersistValue

    persistent Database.Persist.PersistValue

    Intended especially for PostgreSQL backend for text arrays

  7. PersistBool :: Bool -> PersistValue

    persistent Database.Persist.PersistValue

    No documentation available.

  8. PersistByteString :: ByteString -> PersistValue

    persistent Database.Persist.PersistValue

    No documentation available.

  9. PersistDay :: Day -> PersistValue

    persistent Database.Persist.PersistValue

    No documentation available.

  10. pattern PersistDbSpecific :: ByteString -> PersistValue

    persistent Database.Persist.PersistValue

    Deprecated: Deprecated since 2.11 because of inconsistent escaping behavior across backends. The Postgres backend escapes these values, while the MySQL backend does not. If you are using this, please switch to PersistLiteral_ and provide a relevant LiteralType for your conversion.

Page 4 of many | Previous | Next