Merge pull request #14 from yesodweb/show-AccessMode
show instance for AccessMode
This commit is contained in:
commit
5e015dc769
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ data AccessMode =
|
|||
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.
|
||||
deriving Show
|
||||
|
||||
type GetLastError = Document
|
||||
-- ^ Parameters for getLastError command. For example @[\"w\" =: 2]@ tells the server to wait for the write to reach at least two servers in replica set before acknowledging. See <http://www.mongodb.org/display/DOCS/Last+Error+Commands> for more options.
|
||||
|
|
Loading…
Reference in a new issue