Library: MongoDB
Package: MongoDB
Header: Poco/MongoDB/UpdateRequest.h
Class for creating an OP_UPDATE client request. This request is used to update a document.
Direct Base Classes: RequestMessage
All Base Classes: Message, RequestMessage
Member Functions: buildRequest, flags, selector, update
Inherited Functions: buildRequest, header, messageLength, send
typedef enum { UPDATE_NOFLAGS = 0, UPDATE_UPSERT = 1, UPDATE_MULTIUPDATE = 2 } Flags;
UpdateRequest(
const std::string & collectionName,
Flags flags = UPDATE_NOFLAGS
);
Constructor. The full collection name is the concatenation of the database name with the collection name, using a "." for the concatenation. For example, for the database "foo" and the collection "bar", the full collection name is "foo.bar".
virtual ~UpdateRequest();
Destructor
Flags flags() const;
Returns the flags
void flags(
Flags flags
);
Sets the flags
Document & selector();
Returns the selector document
Document & update();
The document to update
void buildRequest(
BinaryWriter & writer
);