A redis backend for persistent.
- data MongoDBReader t m a
- withMongoDBConn :: NetworkIO m => t -> HostName -> ((ConnPool Host, t) -> m b) -> m b
- runMongoDBConn :: MongoDBReader t m a -> (ConnPool t, HostName) -> m a
- type HostName = String
- data PersistValue
- module Database.Persist
Documentation
data MongoDBReader t m a Source
Monad m => Monad (MongoDBReader t m) | |
Functor m => Functor (MongoDBReader t m) | |
Applicative m => Applicative (MongoDBReader t m) | |
MonadIO m => MonadIO (MongoDBReader t m) | |
(DbAccess m, Service t) => PersistBackend (MongoDBReader t m) |
runMongoDBConn :: MongoDBReader t m a -> (ConnPool t, HostName) -> m aSource
Either a host name e.g., "haskell.org"
or a numeric host
address string consisting of a dotted decimal IPv4 address or an
IPv6 address e.g., "192.168.0.1"
.
data PersistValue
A raw value which can be stored in any backend and can be marshalled to
and from a PersistField
.
PersistText Text | |
PersistByteString ByteString | |
PersistInt64 Int64 | |
PersistDouble Double | |
PersistBool Bool | |
PersistDay Day | |
PersistTimeOfDay TimeOfDay | |
PersistUTCTime UTCTime | |
PersistNull | |
PersistList [PersistValue] | |
PersistMap [(Text, PersistValue)] | |
PersistForeignKey ByteString | intended especially for MongoDB backend |
module Database.Persist