19 #include <bsoncxx/stdx/optional.hpp>
20 #include <bsoncxx/stdx/string_view.hpp>
21 #include <mongocxx/stdx.hpp>
23 #include <mongocxx/config/prelude.hpp>
26 inline namespace v_noabi {
99 const stdx::optional<bool>&
strict()
const;
134 stdx::optional<bool> _strict;
135 stdx::optional<bool> _deprecation_errors;
142 #include <mongocxx/config/postlude.hpp>
Class representing a client connection to MongoDB.
Definition: client.hpp:54
Class representing options for server API.
Definition: server_api.hpp:35
static std::string version_to_string(version version)
Converts a version enum value to its string value.
const stdx::optional< bool > & strict() const
Gets the current value of the strict option.
version
Enum representing the possible values for server API version.
Definition: server_api.hpp:40
static version version_from_string(stdx::string_view version)
Converts a version string to its enum value.
version get_version() const
Gets the declared server api version.
server_api & deprecation_errors(bool deprecation_errors)
Sets the deprecation errors option, specifying whether the server should return errors for features t...
server_api & strict(bool strict)
Sets the strict option, specifying whether the server should return errors for features that are not ...
server_api(version version)
Constructs a new server_api object.
const stdx::optional< bool > & deprecation_errors() const
Gets the current value of the deprecation errors option.
A pool of client objects associated with a MongoDB deployment.
Definition: pool.hpp:46
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24