Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
getEntityFields :: EntityDef -> [FieldDef]persistent-redis Database.Persist.Redis Retrieve the list of FieldDef that makes up the fields of the entity. This does not return the fields for an Id column or an implicit id. It will return the key columns if you used the Primary syntax for defining the primary key. This does not return fields that are marked SafeToRemove or MigrationOnly - so it only returns fields that are represented in the Haskell type. If you need those fields, use getEntityFieldsDatabase.
getEntityFieldsDatabase :: EntityDef -> [FieldDef]persistent-redis Database.Persist.Redis This returns all of the FieldDef defined for the EntityDef, including those fields that are marked as MigrationOnly (and therefore only present in the database) or SafeToRemove (and a migration will drop the column if it exists in the database). For all the fields that are present on the Haskell-type, see getEntityFields.
getEntityForeignDefs :: EntityDef -> [ForeignDef]persistent-redis Database.Persist.Redis No documentation available.
getEntityHaskellName :: EntityDef -> EntityNameHSpersistent-redis Database.Persist.Redis Retrieve the Haskell name of the given entity.
getEntityId :: EntityDef -> EntityIdDefpersistent-redis Database.Persist.Redis No documentation available.
getEntityIdField :: EntityDef -> Maybe FieldDefpersistent-redis Database.Persist.Redis No documentation available.
getEntityKeyFields :: EntityDef -> NonEmpty FieldDefpersistent-redis Database.Persist.Redis No documentation available.
getEntitySpan :: EntityDef -> Maybe SourceSpanpersistent-redis Database.Persist.Redis Gets the Source of the definition of the entity. Note that as of this writing the span covers the entire file or quasiquote where the item is defined due to parsing limitations. This may be changed in a future release to be more accurate.
getEntityUniques :: EntityDef -> [UniqueDef]persistent-redis Database.Persist.Redis Retrieve the list of UniqueDef from an EntityDef. As of version 2.14, this will also include the primary key on the entity, if one is defined. If you do not want the primary key, see getEntityUniquesNoPrimaryKey.
getEntityUniquesNoPrimaryKey :: EntityDef -> [UniqueDef]persistent-redis Database.Persist.Redis Retrieve the list of UniqueDef from an EntityDef. This does not include a Primary key, if one is defined. A future version of persistent will include a Primary key among the Unique constructors for the Entity.