Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
persistIdField :: PersistEntity record => EntityField record (Key record)persistent-redis Database.Persist.Redis A meta-operation to retrieve the Key EntityField.
persistUniqueKeys :: PersistEntity record => record -> [Unique record]persistent-redis Database.Persist.Redis A meta operation to retrieve all the Unique keys.
-
persistent-redis Database.Persist.Redis A lower level operation.
persistUniqueToValues :: PersistEntity record => Unique record -> [PersistValue]persistent-redis Database.Persist.Redis A lower level operation.
getPersistMap :: PersistValue -> Either Text [(Text, PersistValue)]persistent Database.Persist FIXME Add documentation to that.
class
HasPersistBackend backendpersistent Database.Persist.Class Class which allows the plucking of a BaseBackend backend from some larger type. For example, instance HasPersistBackend (SqlReadBackend, Int) where type BaseBackend (SqlReadBackend, Int) = SqlBackend persistBackend = unSqlReadBackend . fst
class HasPersistBackend backend =>
IsPersistBackend backendpersistent Database.Persist.Class Class which witnesses that backend is essentially the same as BaseBackend backend. That is, they're isomorphic and backend is just some wrapper over BaseBackend backend.
fromPersistValue :: PersistField a => PersistValue -> Either Text apersistent Database.Persist.Class No documentation available.
fromPersistValueJSON :: FromJSON a => PersistValue -> Either Text apersistent Database.Persist.Class Convenience function for getting a free PersistField instance from a type with JSON instances. The JSON parser used will accept JSON values other that object and arrays. So, if your instance serializes the data to a JSON string, this will still work. Example usage in combination with toPersistValueJSON:
instance PersistField MyData where fromPersistValue = fromPersistValueJSON toPersistValue = toPersistValueJSON
fromPersistValues :: PersistEntity record => [PersistValue] -> Either Text recordpersistent Database.Persist.Class A lower-level operation to convert from database values to a Haskell record.