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. entityIdFromJSON :: (PersistEntity record, FromJSON record) => Value -> Parser (Entity record)

    esqueleto Database.Esqueleto

    Predefined parseJSON. The input JSON looks like {"id": 1, "name": ...}. The typical usage is:

    instance FromJSON (Entity User) where
    parseJSON = entityIdFromJSON
    

  2. keyFromRecordM :: PersistEntity record => Maybe (record -> Key record)

    esqueleto Database.Esqueleto

    Extract a Key record from a record value. Currently, this is only defined for entities using the Primary syntax for natural/composite keys. In a future version of persistent which incorporates the ID directly into the entity, this will always be Just.

  3. keyFromValues :: PersistEntity record => [PersistValue] -> Either Text (Key record)

    esqueleto Database.Esqueleto

    A lower-level key operation.

  4. keyValueEntityFromJSON :: (PersistEntity record, FromJSON record) => Value -> Parser (Entity record)

    esqueleto Database.Esqueleto

    Predefined parseJSON. The input JSON looks like {"key": 1, "value": {"name": ...}}. The typical usage is:

    instance FromJSON (Entity User) where
    parseJSON = keyValueEntityFromJSON
    

  5. entityIdFromJSON :: (PersistEntity record, FromJSON record) => Value -> Parser (Entity record)

    esqueleto Database.Esqueleto.Experimental

    Predefined parseJSON. The input JSON looks like {"id": 1, "name": ...}. The typical usage is:

    instance FromJSON (Entity User) where
    parseJSON = entityIdFromJSON
    

  6. keyFromRecordM :: PersistEntity record => Maybe (record -> Key record)

    esqueleto Database.Esqueleto.Experimental

    Extract a Key record from a record value. Currently, this is only defined for entities using the Primary syntax for natural/composite keys. In a future version of persistent which incorporates the ID directly into the entity, this will always be Just.

  7. keyFromValues :: PersistEntity record => [PersistValue] -> Either Text (Key record)

    esqueleto Database.Esqueleto.Experimental

    A lower-level key operation.

  8. keyValueEntityFromJSON :: (PersistEntity record, FromJSON record) => Value -> Parser (Entity record)

    esqueleto Database.Esqueleto.Experimental

    Predefined parseJSON. The input JSON looks like {"key": 1, "value": {"name": ...}}. The typical usage is:

    instance FromJSON (Entity User) where
    parseJSON = keyValueEntityFromJSON
    

  9. unFrom :: From a -> SqlQuery (a, RawFn)

    esqueleto Database.Esqueleto.Experimental

    No documentation available.

  10. class ToFrom a r | a -> r

    esqueleto Database.Esqueleto.Experimental.From

    A helper class primarily designed to allow using SqlQuery directly in a From expression. This is also useful for embedding a SqlSetOperation, as well as supporting backwards compatibility for the data constructor join tree used prior to 3.5.0.0

Page 9 of many | Previous | Next