Hoogle Search

Within LTS Haskell 24.10 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. toPersistFields :: PersistEntity record => record -> [PersistValue]

    persistent-redis Database.Persist.Redis

    A meta-operation to get the database fields of a record.

  2. toPersistValue :: PersistField a => a -> PersistValue

    persistent-redis Database.Persist.Redis

    No documentation available.

  3. toPersistValueJSON :: ToJSON a => a -> PersistValue

    persistent-redis Database.Persist.Redis

    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
    

  4. type SqlPersistMFor db = ReaderT SqlFor db NoLoggingT ResourceT IO

    persistent-typed-db Database.Persist.Typed

    A specialization of SqlPersistM that uses the underlying db database type.

  5. type SqlPersistTFor db = ReaderT SqlFor db

    persistent-typed-db Database.Persist.Typed

    This type signature represents a database query for a specific database. You will likely want to specialize this to your own application for readability:

    data MainDb
    
    type MainQueryT = SqlPersistTFor MainDb
    
    getStuff :: MonadIO m => StuffId -> MainQueryT m (Maybe Stuff)
    

Page 54 of many | Previous | Next