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.

  1. getEntityIdField :: EntityDef -> Maybe FieldDef

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

  2. getEntityKeyFields :: EntityDef -> NonEmpty FieldDef

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

  3. getEntitySpan :: EntityDef -> Maybe SourceSpan

    persistent-mtl Database.Persist.Sql.Shim

    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.

  4. getEntityUniques :: EntityDef -> [UniqueDef]

    persistent-mtl Database.Persist.Sql.Shim

    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.

  5. getEntityUniquesNoPrimaryKey :: EntityDef -> [UniqueDef]

    persistent-mtl Database.Persist.Sql.Shim

    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.

  6. getFieldName :: (PersistRecordBackend record SqlBackend, Typeable record, MonadSqlQuery m) => EntityField record typ -> m Text

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of getFieldName

  7. getJust :: (PersistRecordBackend record SqlBackend, Typeable record, MonadSqlQuery m) => Key record -> m record

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of getJust

  8. getJustEntity :: (PersistRecordBackend record SqlBackend, Typeable record, MonadSqlQuery m) => Key record -> m (Entity record)

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of getJustEntity

  9. getMany :: (PersistRecordBackend record SqlBackend, Typeable record, MonadSqlQuery m) => [Key record] -> m (Map (Key record) record)

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of getMany

  10. getMigration :: (HasCallStack, MonadSqlQuery m) => Migration -> m [Sql]

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of getMigration

Page 11 of many | Previous | Next