80 pool& operator=(
pool const&) = delete;
94 client* operator->() && = delete;
98 client& operator*() && = delete;
109 return (**
this)[name];
115 friend ::mongocxx::v_noabi::pool;
119 explicit entry(unique_client);
121 unique_client _client;
137 friend ::mongocxx::v_noabi::options::auto_encryption;
142 std::unique_ptr<impl>
const _impl;
Declares mongocxx::v_noabi::options::auto_encryption.
A polyfill for std::optional<T>.
Definition optional.hpp:800
A view-or-value variant type for strings.
Definition view_or_value.hpp:41
pool(uri const &mongodb_uri=mongocxx::v_noabi::uri(), options::pool const &options=options::pool())
Creates a pool associated with a connection string.
A client connection to a MongoDB server.
Definition client.hpp:61
A MongoDB database.
Definition database.hpp:46
An owning handle to a client obtained from a pool.
Definition pool.hpp:90
client * operator->() const &noexcept
Access a member of the client instance.
pool(uri const &mongodb_uri=mongocxx::v_noabi::uri(), options::pool const &options=options::pool())
Creates a pool associated with a connection string.
entry acquire()
Acquires a client from the pool. The calling thread will block until a connection is available.
A MongoDB connection string URI.
Definition uri.hpp:43
Provides mongocxx::v_noabi::client.
Provides mongocxx::v_noabi::database.
#define MONGOCXX_ABI_CDECL
Expands to __cdecl when built with MSVC on Windows.
Definition export.hpp:49
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v_noabi::options::pool.
Declares mongocxx::v_noabi::pool.
Provides mongocxx::v_noabi::uri.
Provides std::optional-related polyfills for library API usage.