33#include <system_error>
A connection to a MongoDB deployment.
Definition client.hpp:60
A handle to a client object owned by an associated pool.
Definition pool.hpp:250
~entry()
Destroy this object, releasing the managed client object back to the associated pool.
v1::database database(bsoncxx::v1::stdx::string_view name)
Equivalent to (*this)->database(name).
entry(entry &&other) noexcept
Move constructor.
Options for mongocxx::v1::pool.
Definition pool.hpp:187
v1::client::options client_opts() const
Return the current client options.
~options()
Destroy this object.
options(options &&other) noexcept
Move constructor.
entry acquire()
Return a client object associated with this pool.
static std::error_category const & error_category()
The error category for mongocxx::v1::pool::errc.
~pool()
Destroy this object.
pool(pool &&other) noexcept
Move constructor.
friend std::error_code make_error_code(errc v)
Support implicit conversion to std::error_code.
Definition pool.hpp:172
pool()
Initialize this pool with default URI options.
bsoncxx::v1::stdx::optional< entry > try_acquire()
Return a client object associated with this pool.
errc
Errors codes which may be returned by mongocxx::v1::pool.
Definition pool.hpp:155
@ wait_queue_timeout
Failed to acquire a client object due to "waitQueueTimeoutMS".
Definition pool.hpp:157
@ zero
Zero.
Definition pool.hpp:156
A MongoDB connection string.
Definition uri.hpp:96
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard postlude header.
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v1::client.
Declares mongocxx::v1::database.
Declares mongocxx::v1::pool.
Provides std::optional-related polyfills for library API usage.
Provides std::string_view-related polyfills for library API usage.
Declares mongocxx::v1::uri.