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.

  1. persistIdField :: PersistEntity record => EntityField record (Key record)

    persistent-redis Database.Persist.Redis

    A meta-operation to retrieve the Key EntityField.

  2. persistUniqueKeys :: PersistEntity record => record -> [Unique record]

    persistent-redis Database.Persist.Redis

    A meta operation to retrieve all the Unique keys.

  3. persistUniqueToFieldNames :: PersistEntity record => Unique record -> NonEmpty (FieldNameHS, FieldNameDB)

    persistent-redis Database.Persist.Redis

    A lower level operation.

  4. persistUniqueToValues :: PersistEntity record => Unique record -> [PersistValue]

    persistent-redis Database.Persist.Redis

    A lower level operation.

  5. getPersistMap :: PersistValue -> Either Text [(Text, PersistValue)]

    persistent Database.Persist

    FIXME Add documentation to that.

  6. class HasPersistBackend backend

    persistent 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

  7. class HasPersistBackend backend => IsPersistBackend backend

    persistent 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.

  8. fromPersistValue :: PersistField a => PersistValue -> Either Text a

    persistent Database.Persist.Class

    No documentation available.

  9. fromPersistValueJSON :: FromJSON a => PersistValue -> Either Text a

    persistent 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
    

  10. fromPersistValues :: PersistEntity record => [PersistValue] -> Either Text record

    persistent Database.Persist.Class

    A lower-level operation to convert from database values to a Haskell record.

Page 41 of many | Previous | Next