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>
28MONGOCXX_INLINE_NAMESPACE_BEGIN
92 class MONGOCXX_PRIVATE impl;
93 const std::unique_ptr<impl> _impl;
96MONGOCXX_INLINE_NAMESPACE_END
99#include <mongocxx/config/postlude.hpp>
Class representing a client connection to MongoDB.
Definition client.hpp:52
Class representing the optional arguments to a MongoDB driver pool object.
Definition pool.hpp:29
A pool of client objects associated with a MongoDB deployment.
Definition pool.hpp:49
pool(const uri &mongodb_uri=mongocxx::uri(), const options::pool &options=options::pool())
Creates a pool associated with a connection string.
std::unique_ptr< client, std::function< void(client *)> > entry
An entry is a handle on a client object acquired via the pool.
Definition pool.hpp:75
entry acquire()
Acquires a client from the pool.
stdx::optional< entry > try_acquire()
Acquires a client from the pool.
Class representing a MongoDB connection string URI.
Definition uri.hpp:40
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:22