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.
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
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.
keyFromValues :: PersistEntity record => [PersistValue] -> Either Text (Key record)esqueleto Database.Esqueleto A lower-level key operation.
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
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
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.
keyFromValues :: PersistEntity record => [PersistValue] -> Either Text (Key record)esqueleto Database.Esqueleto.Experimental A lower-level key operation.
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
unFrom :: From a -> SqlQuery (a, RawFn)esqueleto Database.Esqueleto.Experimental No documentation available.
-
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