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.
keyValueEntityFromJSON :: (PersistEntity record, FromJSON record) => Value -> Parser (Entity record)esqueleto Database.Esqueleto.Legacy Predefined parseJSON. The input JSON looks like {"key": 1, "value": {"name": ...}}. The typical usage is:
instance FromJSON (Entity User) where parseJSON = keyValueEntityFromJSON
keyValueEntityToJSON :: (PersistEntity record, ToJSON record) => Entity record -> Valueesqueleto Database.Esqueleto.Legacy Predefined toJSON. The resulting JSON looks like {"key": 1, "value": {"name": ...}}. The typical usage is:
instance ToJSON (Entity User) where toJSON = keyValueEntityToJSON
persistUniqueToValues :: PersistEntity record => Unique record -> [PersistValue]esqueleto Database.Esqueleto.Legacy A lower level operation.
toPersistValue :: PersistField a => a -> PersistValueesqueleto Database.Esqueleto.Legacy No documentation available.
toPersistValueJSON :: ToJSON a => a -> PersistValueesqueleto Database.Esqueleto.Legacy Convenience function for getting a free PersistField instance from a type with JSON instances. Example usage in combination with fromPersistValueJSON:
instance PersistField MyData where fromPersistValue = fromPersistValueJSON toPersistValue = toPersistValueJSON
-
esqueleto Database.Esqueleto.Legacy No documentation available.
jsonbVal :: (FromJSON a, ToJSON a) => a -> JSONBExpr aesqueleto Database.Esqueleto.PostgreSQL.JSON Convenience function to lift a regular value into a JSONB expression.