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.
toPersistFields :: PersistEntity record => record -> [PersistValue]esqueleto Database.Esqueleto.Experimental A meta-operation to get the database fields of a record.
toPersistValue :: PersistField a => a -> PersistValueesqueleto Database.Esqueleto.Experimental No documentation available.
toPersistValueJSON :: ToJSON a => a -> PersistValueesqueleto Database.Esqueleto.Experimental 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
class
HasPersistBackend backendesqueleto Database.Esqueleto.Legacy 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 backendesqueleto Database.Esqueleto.Legacy 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.
type
SqlPersistM = SqlPersistT NoLoggingT ResourceT IOesqueleto Database.Esqueleto.Legacy No documentation available.
type
SqlPersistT = ReaderT SqlBackendesqueleto Database.Esqueleto.Legacy No documentation available.
fromPersistValue :: PersistField a => PersistValue -> Either Text aesqueleto Database.Esqueleto.Legacy No documentation available.
fromPersistValueJSON :: FromJSON a => PersistValue -> Either Text aesqueleto Database.Esqueleto.Legacy 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
fromPersistValueText :: PersistValue -> Either Text Textesqueleto Database.Esqueleto.Legacy No documentation available.