persistent-mongoDB-0.6.3: Backend for the persistent library using mongoDB.

Database.Persist.MongoDB

Synopsis

Documentation

type HostName = String

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 Action m a

A monad on top of m (which must be a MonadIO) that may access the database and may fail with a DB Failure

data AccessMode

Type of reads and writes to perform

Constructors

ReadStaleOk

Read-only action, reading stale data from a slave is OK.

UnconfirmedWrites

Read-write action, slave not OK, every write is fire & forget.

ConfirmWrites GetLastError

Read-write action, slave not OK, every write is confirmed with getLastError.

(=:) :: Val v => Label -> v -> Field

Field with given label and typed value

data MongoConf Source

Information required to connect to a mongo database

Constructors

MongoConf