Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

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

  1. package data-accessor-transformers

    Use Accessor to access state in transformers State monad Use Accessor to access state in transformers State monad

  2. PersistForeignConstraintUnmet :: Text -> PersistException

    esqueleto Database.Esqueleto

    No documentation available.

  3. getBackendSpecificForeignKeyName :: BackendSpecificOverrides -> Maybe (EntityNameDB -> FieldNameDB -> ConstraintNameDB)

    esqueleto Database.Esqueleto

    If the override is defined, then this returns a function that accepts an entity name and field name and provides the ConstraintNameDB for the foreign key constraint. An abstract accessor for the BackendSpecificOverrides

  4. getEntityForeignDefs :: EntityDef -> [ForeignDef]

    esqueleto Database.Esqueleto

    No documentation available.

  5. setBackendSpecificForeignKeyName :: (EntityNameDB -> FieldNameDB -> ConstraintNameDB) -> BackendSpecificOverrides -> BackendSpecificOverrides

    esqueleto Database.Esqueleto

    Set the backend's foreign key generation function to this value.

  6. subSelectForeign :: (BackendCompatible SqlBackend (PersistEntityBackend val1), PersistEntity val1, PersistEntity val2, PersistField a) => SqlExpr (Entity val2) -> EntityField val2 (Key val1) -> (SqlExpr (Entity val1) -> SqlExpr (Value a)) -> SqlExpr (Value a)

    esqueleto Database.Esqueleto

    Performs a sub-select using the given foreign key on the entity. This is useful to extract values that are known to be present by the database schema. As an example, consider the following persistent definition:

    User
    profile ProfileId
    
    Profile
    name    Text
    
    The following query will return the name of the user.
    getUserWithName =
    select $
    from $ user ->
    pure (user, subSelectForeign user UserProfile (^. ProfileName)
    

  7. PersistForeignConstraintUnmet :: Text -> PersistException

    esqueleto Database.Esqueleto.Experimental

    No documentation available.

  8. getBackendSpecificForeignKeyName :: BackendSpecificOverrides -> Maybe (EntityNameDB -> FieldNameDB -> ConstraintNameDB)

    esqueleto Database.Esqueleto.Experimental

    If the override is defined, then this returns a function that accepts an entity name and field name and provides the ConstraintNameDB for the foreign key constraint. An abstract accessor for the BackendSpecificOverrides

  9. getEntityForeignDefs :: EntityDef -> [ForeignDef]

    esqueleto Database.Esqueleto.Experimental

    No documentation available.

  10. setBackendSpecificForeignKeyName :: (EntityNameDB -> FieldNameDB -> ConstraintNameDB) -> BackendSpecificOverrides -> BackendSpecificOverrides

    esqueleto Database.Esqueleto.Experimental

    Set the backend's foreign key generation function to this value.

Page 667 of many | Previous | Next