20 #include <bsoncxx/stdx/optional.hpp>
21 #include <mongocxx/options/pool.hpp>
22 #include <mongocxx/stdx.hpp>
23 #include <mongocxx/uri.hpp>
25 #include <mongocxx/config/prelude.hpp>
28 inline namespace v_noabi {
77 client* operator->() && = delete;
81 client& operator*() && = delete;
84 entry& operator=(std::nullptr_t) noexcept;
87 explicit operator
bool() const noexcept;
92 using unique_client = std::unique_ptr<
client, std::function<
void MONGOCXX_CALL(
client*)>>;
94 MONGOCXX_PRIVATE explicit
entry(unique_client);
96 unique_client _client;
109 stdx::optional<
entry> try_acquire();
112 friend class options::auto_encryption;
116 class MONGOCXX_PRIVATE impl;
117 const std::unique_ptr<impl> _impl;
123 #include <mongocxx/config/postlude.hpp>
Class representing a client connection to MongoDB.
Definition: client.hpp:54
Class representing the optional arguments to a MongoDB driver pool object.
Definition: pool.hpp:29
An entry is a handle on a client object acquired via the pool.
Definition: pool.hpp:73
client * operator->() const &noexcept
Access a member of the client instance.
A pool of client objects associated with a MongoDB deployment.
Definition: pool.hpp:46
pool(const uri &mongodb_uri=mongocxx::uri(), const options::pool &options=options::pool())
Creates a pool associated with a connection string.
Class representing a MongoDB connection string URI.
Definition: uri.hpp:42
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24