22 #include <bsoncxx/document/value.hpp> 23 #include <bsoncxx/stdx/optional.hpp> 24 #include <bsoncxx/stdx/string_view.hpp> 25 #include <mongocxx/stdx.hpp> 27 #include <mongocxx/config/prelude.hpp> 30 MONGOCXX_INLINE_NAMESPACE_BEGIN
61 enum class level { k_default, k_majority, k_tag, k_unacknowledged, k_acknowledged };
101 void journal(
bool journal);
118 void nodes(
std::int32_t confirm_from);
138 void acknowledge_level(level confirm_level);
150 void majority(
std::chrono::milliseconds timeout);
161 void tag(stdx::string_view tag);
173 void timeout(
std::chrono::milliseconds timeout);
180 bool journal() const;
192 stdx::optional<
std::int32_t> nodes() const;
201 level acknowledge_level() const;
208 stdx::optional<
std::
string> tag() const;
215 bool majority() const;
222 std::chrono::milliseconds timeout() const;
229 bool is_acknowledged() const;
237 bsoncxx::document::value to_document() const;
259 class MONGOCXX_PRIVATE impl;
263 std::unique_ptr<impl> _impl;
266 MONGOCXX_INLINE_NAMESPACE_END
269 #include <mongocxx/config/postlude.hpp> Class representing a MongoDB connection string URI.
Definition: uri.hpp:40
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Definition: error_code.hpp:117
Class representing a client connection to MongoDB.
Definition: client.hpp:57
Class representing a MongoDB database.
Definition: database.hpp:47
level
A class to represent the special case values for write_concern::nodes.
Definition: write_concern.hpp:61
Class representing a batch of write operations that can be sent to the server as a group...
Definition: bulk_write.hpp:43
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
Class representing the server-side requirement for reporting the success of a write operation...
Definition: write_concern.hpp:55
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:87