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.
class (PersistUniqueRead backend, PersistStoreWrite backend) =>
PersistUniqueWrite backendesqueleto Database.Esqueleto.Legacy 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.
newtype
PersistUnsafeMigrationException esqueleto Database.Esqueleto.Legacy An exception indicating that Persistent refused to run some unsafe migrations. Contains a list of pairs where the Bool tracks whether the migration was unsafe (True means unsafe), and the Sql is the sql statement for the migration.
PersistUnsafeMigrationException :: [(Bool, Sql)] -> PersistUnsafeMigrationExceptionesqueleto Database.Esqueleto.Legacy No documentation available.
-
esqueleto Database.Esqueleto.Legacy No documentation available.
-
esqueleto Database.Esqueleto.Legacy A raw value which can be stored in any backend and can be marshalled to and from a PersistField.
-
esqueleto Database.Esqueleto.Legacy No documentation available.
type
PersistableRecordWidth a = ProductConst Sum Int apersistable-record Database.Record Proposition to specify width of Haskell type a. The width is length of database value list which is converted from Haskell type a.
-
persistable-record Database.Record Proposition to specify type q is database value type, contains null value
class Eq q =>
PersistableType qpersistable-record Database.Record Interface of derivation rule for PersistableSqlType.
-
persistable-record Database.Record PersistableWidth a is implicit rule to derive PersistableRecordWidth a width proposition for type a. Generic programming (https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#generic-programming) with default signature is available for PersistableWidth class, so you can make instance like below:
{-# LANGUAGE DeriveGeneric #-} import GHC.Generics (Generic) -- data Foo = Foo { ... } deriving Generic instance PersistableWidth Foo