A class representing a client session on the server
WARNING: not meant to be instantiated directly.
The server id associated with this session
Aborts the currently active transaction in this session.
Name Type Descriptioncallback
function optional
optional callback for completion of this operation
Advances the operationTime for a ClientSession.
Name Type DescriptionoperationTime
Timestamp
the BSON.Timestamp
of the operation type it is desired to advance to
Commits the currently active transaction in this session.
Name Type Descriptioncallback
function optional
optional callback for completion of this operation
Ends this session on the server
Name Type Descriptionoptions
Object optional
Optional settings. Currently reserved for future use
callback
function optional
Optional callback for completion of this operation
Used to determine if this session equals another
Increment the transaction number on the internal ServerSession
Starts a new transaction with the given options.
Runs a provided lambda within a transaction, retrying either the commit operation
or entire transaction as needed (and when the error permits) to better ensure that
the transaction can complete successfully.
IMPORTANT: This method requires the user to return a Promise, all lambdas that do not
return a Promise will result in undefined behavior.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4