22 #include <bsoncxx/document/value.hpp>
23 #include <bsoncxx/stdx/optional.hpp>
24 #include <bsoncxx/stdx/string_view.hpp>
25 #include <mongocxx/options/transaction.hpp>
26 #include <mongocxx/stdx.hpp>
28 #include <mongocxx/config/prelude.hpp>
31 inline namespace v_noabi {
65 enum class level { k_default, k_majority, k_tag, k_unacknowledged, k_acknowledged };
105 void journal(
bool journal);
122 void nodes(std::int32_t confirm_from);
146 void acknowledge_level(
level confirm_level);
158 void majority(std::chrono::milliseconds timeout);
169 void tag(stdx::string_view tag);
181 void timeout(std::chrono::milliseconds timeout);
188 bool journal() const;
200 stdx::optional<std::int32_t> nodes() const;
216 stdx::optional<std::
string> tag() const;
223 bool majority() const;
230 std::chrono::milliseconds timeout() const;
237 bool is_acknowledged() const;
254 friend class options::transaction;
269 class MONGOCXX_PRIVATE impl;
271 MONGOCXX_PRIVATE
write_concern(std::unique_ptr<impl>&& implementation);
273 std::unique_ptr<impl> _impl;
279 #include <mongocxx/config/postlude.hpp>
Class representing a batch of write operations that can be sent to the server as a group.
Definition: bulk_write.hpp:42
Class representing a client connection to MongoDB.
Definition: client.hpp:54
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:85
Class representing a MongoDB database.
Definition: database.hpp:44
Class representing a MongoDB connection string URI.
Definition: uri.hpp:42
Class representing the server-side requirement for reporting the success of a write operation.
Definition: write_concern.hpp:59
write_concern & operator=(const write_concern &)
Copy assigns a write_concern.
write_concern(const write_concern &)
Copy constructs a write_concern.
level
A class to represent the special case values for write_concern::nodes.
Definition: write_concern.hpp:65
write_concern(write_concern &&) noexcept
Move constructs a write_concern.
write_concern()
Constructs a new write_concern.
The top-level namespace for bsoncxx library entities.
Definition: element.hpp:24
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24