MongoDB C++ Driver
mongocxx-3.6.2
|
19 #include <bsoncxx/stdx/optional.hpp>
20 #include <mongocxx/write_concern.hpp>
22 #include <mongocxx/config/prelude.hpp>
25 MONGOCXX_INLINE_NAMESPACE_BEGIN
59 const bsoncxx::stdx::optional<std::chrono::milliseconds>&
max_time()
const;
85 const bsoncxx::stdx::optional<mongocxx::write_concern>&
write_concern()
const;
139 bsoncxx::stdx::optional<std::chrono::milliseconds> _max_time;
140 bsoncxx::stdx::optional<mongocxx::write_concern> _write_concern;
141 bsoncxx::stdx::optional<bsoncxx::document::value> _commit_quorum;
145 MONGOCXX_INLINE_NAMESPACE_END
148 #include <mongocxx/config/postlude.hpp>
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
index_view & commit_quorum(std::int32_t commit_quorum)
Sets the commit quorum for this operation.
const bsoncxx::stdx::optional< std::chrono::milliseconds > & max_time() const
The current max_time setting.
const bsoncxx::stdx::optional< mongocxx::write_concern > & write_concern() const
Gets the current write concern.
Class representing the server-side requirement for reporting the success of a write operation.
Definition: write_concern.hpp:56
const stdx::optional< bsoncxx::document::value > commit_quorum() const
Gets the current commitQuorum setting.
Class representing optional arguments to IndexView operations.
Definition: index_view.hpp:31
index_view & commit_quorum(std::string commit_quorum)
Sets the commit quorum for this operation.
index_view & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
index_view & write_concern(mongocxx::write_concern write_concern)
Sets the write concern for this operation.