-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Backend for the persistent library using mongoDB. -- -- Backend for the persistent library using mongoDB. @package persistent-mongoDB @version 0.2.2 -- | A redis backend for persistent. module Database.Persist.MongoDB 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 -- | 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". type HostName = String -- | A raw value which can be stored in any backend and can be marshalled -- to and from a PersistField. data PersistValue :: * PersistText :: Text -> PersistValue PersistByteString :: ByteString -> PersistValue PersistInt64 :: Int64 -> PersistValue PersistDouble :: Double -> PersistValue PersistBool :: Bool -> PersistValue PersistDay :: Day -> PersistValue PersistTimeOfDay :: TimeOfDay -> PersistValue PersistUTCTime :: UTCTime -> PersistValue PersistNull :: PersistValue PersistList :: [PersistValue] -> PersistValue PersistMap :: [(Text, PersistValue)] -> PersistValue -- | intended especially for MongoDB backend PersistForeignKey :: ByteString -> PersistValue instance Monad m => Monad (MongoDBReader t m) instance MonadIO m => MonadIO (MongoDBReader t m) instance Functor m => Functor (MongoDBReader t m) instance Applicative m => Applicative (MongoDBReader t m) instance Serialize ObjectId instance Val PersistValue instance (DbAccess m, Service t) => PersistBackend (MongoDBReader t m)