65 uri(
bsoncxx::v_noabi::
string::view_or_value uri_string = k_default_uri);
83 uri& operator=(const
uri&) = delete;
375 uri(
std::unique_ptr<impl>&& implementation);
377 std::unique_ptr<impl> _impl;
383#include <mongocxx/config/postlude.hpp>
Class representing a client connection to MongoDB.
Definition client.hpp:62
Class representing a MongoDB database.
Definition database.hpp:47
A pool of client objects associated with a MongoDB deployment.
Definition pool.hpp:52
A class to represent the read concern. Read concern can be set at the client, database,...
Definition read_concern.hpp:58
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition read_preference.hpp:65
Class representing a MongoDB connection string URI.
Definition uri.hpp:43
stdx::optional< bool > tls_disable_ocsp_endpoint_check() const
Returns the value of the option "tlsDisableOCSPEndpointCheck" if present in the uri.
stdx::optional< stdx::string_view > tls_certificate_key_file_password() const
Returns the value of the option "tlsCertificateKeyFilePassword" if present in the uri.
std::vector< host > hosts() const
Returns the hosts from the uri.
std::string auth_mechanism() const
Returns the authentication mechanism from the uri.
stdx::optional< bool > direct_connection() const
Returns the value of the option "directConnection" if present in the uri.
stdx::optional< std::int32_t > server_selection_timeout_ms() const
Returns the value of the option "serverSelectionTimeoutMS" if present in the uri.
stdx::optional< bool > tls_disable_certificate_revocation_check() const
Returns the value of the option "tlsDisableCertificateRevocationCheck" if present in the uri.
stdx::optional< stdx::string_view > tls_ca_file() const
Returns the value of the option "tlsCAFile" if present in the uri.
stdx::optional< std::int32_t > zlib_compression_level() const
Returns the value of the option "zlibCompressionLevel" if present in the uri.
bool tls() const
Returns the tls parameter from the uri.
stdx::optional< bool > tls_allow_invalid_certificates() const
Returns the value of the option "tlsAllowInvalidCertificates" if present in the uri.
std::string auth_source() const
Returns the authentication source from the uri.
std::string to_string() const
Returns the uri in a string format.
stdx::optional< std::int32_t > heartbeat_frequency_ms() const
Returns the value of the option "heartbeatFrequencyMS" if present in the uri.
bsoncxx::v_noabi::document::view options() const
Returns other uri options.
stdx::optional< bsoncxx::v_noabi::document::view > auth_mechanism_properties() const
Returns the value of the option "authMechanismProperties" if present in the uri.
stdx::optional< bool > server_selection_try_once() const
Returns the value of the option "serverSelectionTryOnce" if present in the uri.
std::vector< stdx::string_view > compressors() const
Returns the list of compressors present in the uri or an empty list if "compressors" was not present ...
stdx::optional< bsoncxx::v_noabi::document::view > credentials()
Returns the value of the option credentials if present in the uri.
MONGOCXX_DEPRECATED bool ssl() const
Returns the ssl parameter from the uri.
std::string username() const
Returns the supplied username from the uri.
stdx::optional< stdx::string_view > appname() const
Returns the value of the option "appname" if present in the uri.
stdx::optional< bool > retry_writes() const
Returns the value of the option "retryWrites" if present in the uri.
stdx::optional< bool > tls_insecure() const
Returns the value of the option "tlsInsecure" if present in the uri.
stdx::optional< std::int32_t > socket_timeout_ms() const
Returns the value of the option "socketTimeoutMS" if present in the uri.
std::string password() const
Returns the password from the uri.
stdx::optional< std::int32_t > local_threshold_ms() const
Returns the value of the option "localThresholdMS" if present in the uri.
stdx::optional< stdx::string_view > tls_certificate_key_file() const
Returns the value of the option "tlsCertificateKeyFile" if present in the uri.
stdx::optional< std::int32_t > srv_max_hosts() const
Returns the value of the option "srvMaxHosts" if present in the uri.
std::string replica_set() const
Returns the replica set specified in the uri.
stdx::optional< std::int32_t > connect_timeout_ms() const
Returns the value of the option "connectTimeoutMS" if present in the uri.
stdx::optional< bool > retry_reads() const
Returns the value of the option "retryReads" if present in the uri.
stdx::optional< std::int32_t > max_pool_size() const
Returns the value of the option "maxPoolSize" if present in the uri.
stdx::optional< bool > tls_allow_invalid_hostnames() const
Returns the value of the option "tlsAllowInvalidHostnames" if present in the uri.
stdx::optional< std::int32_t > wait_queue_timeout_ms() const
Returns the value of the option "waitQueueTimeoutMS" if present in the uri.
Class representing the server-side requirement for reporting the success of a write operation....
Definition write_concern.hpp:61
Declares mongocxx::v_noabi::client.
Provides bsoncxx::v_noabi::document::view.
#define MONGOCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition fwd.hpp:258
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:222
#define MONGOCXX_ABI_EXPORT
Exports the associated entity as part of the ABI.
Definition fwd.hpp:198
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace within which all mongocxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
Declares mongocxx::v_noabi::pool.
Provides mongocxx::v_noabi::read_concern.
Provides mongocxx::v_noabi::read_preference.
Provides bsoncxx::v_noabi::string::view_or_value.
A host.
Definition uri.hpp:46
Declares mongocxx::v_noabi::uri.
Provides mongocxx::v_noabi::write_concern.