22 #include <mongocxx/bulk_write-fwd.hpp>
23 #include <mongocxx/client-fwd.hpp>
24 #include <mongocxx/collection-fwd.hpp>
25 #include <mongocxx/database-fwd.hpp>
26 #include <mongocxx/options/transaction-fwd.hpp>
27 #include <mongocxx/uri-fwd.hpp>
28 #include <mongocxx/write_concern-fwd.hpp>
30 #include <bsoncxx/document/value.hpp>
31 #include <bsoncxx/stdx/optional.hpp>
32 #include <bsoncxx/stdx/string_view.hpp>
33 #include <mongocxx/options/transaction.hpp>
34 #include <mongocxx/stdx.hpp>
36 #include <mongocxx/config/prelude.hpp>
64 enum class level { k_default, k_majority, k_tag, k_unacknowledged, k_acknowledged };
121 void nodes(std::int32_t confirm_from);
200 stdx::optional<std::int32_t>
nodes() const;
216 stdx::optional<std::
string>
tag() const;
252 friend ::
mongocxx::v_noabi::options::transaction;
268 class MONGOCXX_PRIVATE impl;
270 MONGOCXX_PRIVATE
write_concern(std::unique_ptr<impl>&& implementation);
272 std::unique_ptr<impl> _impl;
278 #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:44
Class representing a client connection to MongoDB.
Definition: client.hpp:61
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:86
Class representing a MongoDB database.
Definition: database.hpp:46
Class representing a MongoDB connection string URI.
Definition: uri.hpp:47
Class representing the server-side requirement for reporting the success of a write operation.
Definition: write_concern.hpp:58
level acknowledge_level() const
Gets the current acknowledgment level.
bool is_acknowledged() const
Gets whether this write_concern requires an acknowledged write.
write_concern & operator=(const write_concern &)
Copy assigns a write_concern.
write_concern(const write_concern &)
Copy constructs a write_concern.
std::chrono::milliseconds timeout() const
Gets the current timeout for this write_concern.
bool journal() const
Gets the current status of the journal parameter.
stdx::optional< std::int32_t > nodes() const
Gets the current number of nodes that this write_concern requires operations to reach.
level
A class to represent the special case values for write_concern::nodes.
Definition: write_concern.hpp:64
bsoncxx::v_noabi::document::value to_document() const
Gets the document form of this write_concern.
bool majority() const
Gets whether the majority of nodes is currently required by this write_concern.
write_concern(write_concern &&) noexcept
Move constructs a write_concern.
write_concern()
Constructs a new write_concern.
stdx::optional< std::string > tag() const
Gets the current getLastErrorMode that is required by this write_concern.
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19