MongoDB C++ Driver
mongocxx-3.6.2
|
19 #include <bsoncxx/document/view.hpp>
21 #include <mongocxx/config/prelude.hpp>
24 MONGOCXX_INLINE_NAMESPACE_BEGIN
83 bsoncxx::stdx::string_view
host()
const;
90 std::uint16_t
port()
const;
93 const void* _failed_event;
97 MONGOCXX_INLINE_NAMESPACE_END
100 #include <mongocxx/config/postlude.hpp>
bsoncxx::stdx::string_view command_name() const
Returns the name of the command.
bsoncxx::document::view failure() const
Returns the server’s reply to the failed operation.
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
An event notification sent when the driver fails to execute a MongoDB command.
Definition: command_failed_event.hpp:34
std::int64_t operation_id() const
Returns the operation id.
std::uint16_t port() const
Returns the port.
std::int64_t request_id() const
Returns the request id.
bsoncxx::stdx::string_view host() const
Returns the host name.
~command_failed_event()
Destroys a command_failed_event.
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
std::int64_t duration() const
Returns the duration of the failed operation.