Hoogle Search

Within LTS Haskell 24.65 (ghc-9.10.3)

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

  1. getEntityId :: EntityDef -> EntityIdDef

    persistent Database.Persist.EntityDef

    No documentation available.

  2. getEntityIdField :: EntityDef -> Maybe FieldDef

    persistent Database.Persist.EntityDef

    No documentation available.

  3. setEntityId :: FieldDef -> EntityDef -> EntityDef

    persistent Database.Persist.EntityDef

    Set an entityId to be the given FieldDef.

  4. setEntityIdDef :: EntityIdDef -> EntityDef -> EntityDef

    persistent Database.Persist.EntityDef

    No documentation available.

  5. data EntityIdDef

    persistent Database.Persist.EntityDef.Internal

    The definition for the entity's primary key ID.

  6. EntityIdField :: FieldDef -> EntityIdDef

    persistent Database.Persist.EntityDef.Internal

    The entity has a single key column, and it is a surrogate key - that is, you can't go from rec -> Key rec.

  7. EntityIdNaturalKey :: CompositeDef -> EntityIdDef

    persistent Database.Persist.EntityDef.Internal

    The entity has a natural key. This means you can write rec -> Key rec because all the key fields are present on the datatype. A natural key can have one or more columns.

  8. entityId :: EntityDef -> !EntityIdDef

    persistent Database.Persist.EntityDef.Internal

    The entity's primary key or identifier.

  9. fieldIsImplicitIdColumn :: FieldDef -> !Bool

    persistent Database.Persist.FieldDef.Internal

    True if the field is an implicit ID column. False otherwise.

  10. module Database.Persist.ImplicitIdDef

    This module contains types and functions for creating an ImplicitIdDef, which allows you to customize the implied ID column that persistent generates. If this module doesn't suit your needs, you may want to import Database.Persist.ImplicitIdDef.Internal instead. If you do so, please file an issue on GitHub so we can support your needs. Breaking changes to that module will *not* be accompanied with a major version bump.

Page 596 of many | Previous | Next