MongoDB C++ Driver mongocxx-3.11.0
|
Declares entities whose ABI stability is NOT guaranteed.
Namespaces | |
namespace | events |
Declares entities describing APM events. | |
namespace | gridfs |
Declares entities related to GridFS. | |
namespace | model |
Declares entities representing bulk write operations. | |
namespace | options |
Declares entities representing options to use with various commands. | |
namespace | result |
Declares entities representing the result of various commands. | |
namespace | stdx |
Redeclares bsoncxx C++17 standard library polyfills in the mongocxx library namespace for internal use. | |
Classes | |
class | authentication_exception |
Class representing an exception during authentication. More... | |
class | bulk_write |
Class representing a batch of write operations that can be sent to the server as a group. More... | |
class | bulk_write_exception |
Class representing an exception during a bulk write operation. More... | |
class | change_stream |
Class representing a MongoDB change stream. More... | |
class | client |
Class representing a client connection to MongoDB. More... | |
class | client_encryption |
Class supporting operations for MongoDB Client-Side Field Level Encryption. More... | |
class | client_session |
Use a session for a sequence of operations, optionally with either causal consistency or snapshots. More... | |
class | collection |
Class representing server side document groupings within a MongoDB database. More... | |
class | cursor |
Class representing a pointer to the result set of a query on a MongoDB server. More... | |
class | database |
Class representing a MongoDB database. More... | |
class | exception |
A class to be used as the base class for all mongocxx exceptions. More... | |
class | gridfs_exception |
Class representing an error encountered when attempting to perform the requested GridFS operation. More... | |
class | hint |
Class representing a hint to be passed to a database operation. More... | |
class | index_model |
Class representing an index on a MongoDB server. More... | |
class | index_view |
Class representing a MongoDB index view. More... | |
class | instance |
Class representing an instance of the MongoDB driver. More... | |
class | logger |
The interface that all user-defined loggers must implement. More... | |
class | logic_error |
Class representing an exception caused by using the mongocxx API improperly. More... | |
class | operation_exception |
Class representing an exception received from a MongoDB server. It includes the server-provided error code, if one was available. More... | |
class | pipeline |
Class representing a MongoDB aggregation pipeline. More... | |
class | pool |
A pool of client objects associated with a MongoDB deployment. More... | |
class | query_exception |
Class representing an exception during a query operation. More... | |
class | read_concern |
A class to represent the read concern. Read concern can be set at the client, database, or collection level. The read concern can also be provided via connection string, and will be parsed and set on the client constructed for the URI. More... | |
class | read_preference |
Class representing a preference for how the driver routes read operations to members of a replica set or to a sharded cluster. More... | |
class | search_index_model |
Class representing a search index on a MongoDB server. More... | |
class | search_index_view |
Class representing a MongoDB search index view. More... | |
class | uri |
Class representing a MongoDB connection string URI. More... | |
class | validation_criteria |
Class representing criteria for document validation, to be applied to a collection. More... | |
class | write_concern |
Class representing the server-side requirement for reporting the success of a write operation. The strength of the write concern setting determines the level of guarantees that you will receive from MongoDB regarding write durability. More... | |
class | write_exception |
Class representing an exception during a write operation. More... | |
Enumerations | |
enum class | error_code : std::int32_t |
Enum representing the various error types that can occur during driver usage. More... | |
enum class | log_level |
The log level of a message passed to a mongocxx::v_noabi::logger. More... | |
enum class | server_error_code : std::int32_t |
Enum representing the various errors types that can be returned from the server. As this list changes over time, this is just a placeholder for an Int32 error code value from the server. More... | |
enum class | write_type |
Enum representing the the types of write operations that can be performed. More... | |
Functions | |
const std::error_category & | error_category () |
Get the error_category for mongocxx library exceptions. | |
std::error_code | make_error_code (error_code error) |
Translate a mongocxx::v_noabi::error_code into a std::error_code. | |
std::error_code | make_error_code (server_error_code error) |
Translate a mongocxx::v_noabi::server_error_code into a std::error_code. | |
const std::error_category & | server_error_category () |
Get the error_category for mongocxx library exceptions. | |
stdx::string_view | to_string (log_level level) |
Returns a stringification of the given log level. | |
bool | operator== (std::string index, const hint &index_hint) |
Convenience methods to compare against an index name. | |
bool | operator!= (const hint &index_hint, std::string index) |
Convenience methods to compare against an index name. | |
bool | operator!= (std::string index, const hint &index_index) |
Convenience methods to compare against an index name. | |
bool | operator== (std::string index, const hint &index_hint) |
Convenience methods to compare against an index name. | |
bool | operator!= (const hint &index_hint, std::string index) |
Convenience methods to compare against an index name. | |
bool | operator!= (std::string index, const hint &index_index) |
Convenience methods to compare against an index name. | |
bool | operator== (bsoncxx::v_noabi::document::view index, const hint &index_hint) |
Convenience methods to compare for equality against an index document. | |
bool | operator!= (const hint &index_hint, bsoncxx::v_noabi::document::view index) |
Convenience methods to compare for equality against an index document. | |
bool | operator!= (bsoncxx::v_noabi::document::view index, const hint &index_hint) |
Convenience methods to compare for equality against an index document. | |
bool | operator== (bsoncxx::v_noabi::document::view index, const hint &index_hint) |
Convenience methods to compare for equality against an index document. | |
bool | operator!= (const hint &index_hint, bsoncxx::v_noabi::document::view index) |
Convenience methods to compare for equality against an index document. | |
bool | operator!= (bsoncxx::v_noabi::document::view index, const hint &index_hint) |
Convenience methods to compare for equality against an index document. | |
bool | operator== (const validation_criteria &lhs, const validation_criteria &rhs) |
Compare equal when the arguments' rule, level, and action compare equal; otherwise, compare false. | |
bool | operator!= (const validation_criteria &lhs, const validation_criteria &rhs) |
Compare equal when the arguments' rule, level, and action compare equal; otherwise, compare false. | |
bool | operator== (const validation_criteria &lhs, const validation_criteria &rhs) |
Compare equal when the arguments' rule, level, and action compare equal; otherwise, compare false. | |
bool | operator!= (const validation_criteria &lhs, const validation_criteria &rhs) |
Compare equal when the arguments' rule, level, and action compare equal; otherwise, compare false. | |
|
strong |
Enum representing the various error types that can occur during driver usage.
Enumerator | |
---|---|
k_cannot_recreate_instance | More than one mongocxx::v_noabi::instance has been created. |
k_invalid_client_object | A default-constructed or moved-from mongocxx::v_noabi::client object has been used. |
k_invalid_collection_object | A default-constructed or moved-from mongocxx::v_noabi::collection object has been used. |
k_invalid_database_object | A default-constructed or moved-from mongocxx::v_noabi::database object has been used. |
k_invalid_parameter | An invalid or out-of-bounds parameter was provided. |
k_ssl_not_supported | An SSL operation was used without SSL support being built. |
k_unknown_read_concern | An unknown read concern level was set. |
k_unknown_write_concern | An unknown write concern level was set. |
k_server_response_malformed | The server returned a malformed response. |
k_invalid_uri | An invalid MongoDB URI was provided. |
k_invalid_gridfs_bucket_object | A default-constructed or moved-from mongocxx::v_noabi::gridfs::bucket object has been used. |
k_invalid_gridfs_uploader_object | A default-constructed or moved-from mongocxx::v_noabi::gridfs::uploader object has been used. |
k_invalid_gridfs_downloader_object | A default-constructed or moved-from mongocxx::v_noabi::gridfs::downloader object has been used. |
k_gridfs_stream_not_open | A mongocxx::v_noabi::gridfs::uploader object was not open for writing, or a mongocxx::v_noabi::gridfs::downloader object was not open for reading. |
k_gridfs_upload_requires_too_many_chunks | A mongocxx::v_noabi::gridfs::uploader object has exceeded the maximum number of allowable GridFS chunks when attempting to upload the requested file. |
k_gridfs_file_not_found | The requested GridFS file was not found. |
k_gridfs_file_corrupted | A GridFS file being operated on was discovered to be corrupted. |
k_instance_destroyed | The mongocxx::v_noabi::instance has been destroyed. |
k_cannot_create_session | mongocxx::v_noabi::client.create_session failed to create a mongocxx::v_noabi::client_session. |
k_invalid_session | A failure attempting to pass a mongocxx::v_noabi::client_session to a method. |
k_invalid_transaction_options_object | A moved-from mongocxx::v_noabi::options::transaction object has been used. |
k_create_resource_fail | A resource (server API handle, etc.) could not be created: |
k_invalid_search_index_model | A default-constructed or moved-from mongocxx::v_noabi::search_index_model object has been used. |
k_invalid_search_index_view | A default-constructed or moved-from mongocxx::v_noabi::search_index_view object has been used. |
k_pool_wait_queue_timeout | Timed out while waiting for a client to be returned to the pool. |
|
strong |
The log level of a message passed to a mongocxx::v_noabi::logger.
Enumerator | |
---|---|
k_error | Log Level Error. |
k_critical | Log Level Critical. |
k_warning | Log Level Warning. |
k_message | Log Level Message. |
k_info | Log Level Info. |
k_debug | Log Level Debug. |
k_trace | Log Level Trace. |
|
strong |
Enum representing the various errors types that can be returned from the server. As this list changes over time, this is just a placeholder for an Int32 error code value from the server.
|
strong |
Enum representing the the types of write operations that can be performed.
const std::error_category & mongocxx::v_noabi::error_category | ( | ) |
Get the error_category for mongocxx library exceptions.
|
inline |
Translate a mongocxx::v_noabi::error_code into a std::error_code.
error | A mongocxx::v_noabi::error_code |
|
inline |
Translate a mongocxx::v_noabi::server_error_code into a std::error_code.
error | A mongocxx::v_noabi::error_code |
bool operator!= | ( | bsoncxx::v_noabi::document::view | index, |
const hint & | index_hint ) |
Convenience methods to compare for equality against an index document.
Compares equal if the hint contains a matching index document. Otherwise, compares unequal.
bool operator!= | ( | const hint & | index_hint, |
bsoncxx::v_noabi::document::view | index ) |
Convenience methods to compare for equality against an index document.
Compares equal if the hint contains a matching index document. Otherwise, compares unequal.
bool operator!= | ( | const hint & | index_hint, |
std::string | index ) |
Convenience methods to compare against an index name.
Compares equal if the hint contains a matching index name. Otherwise, compares unequal.
bool operator!= | ( | const validation_criteria & | lhs, |
const validation_criteria & | rhs ) |
Compare equal when the arguments' rule, level, and action compare equal; otherwise, compare false.
bool operator!= | ( | std::string | index, |
const hint & | index_index ) |
Convenience methods to compare against an index name.
Compares equal if the hint contains a matching index name. Otherwise, compares unequal.
bool operator== | ( | bsoncxx::v_noabi::document::view | index, |
const hint & | index_hint ) |
Convenience methods to compare for equality against an index document.
Compares equal if the hint contains a matching index document. Otherwise, compares unequal.
bool operator== | ( | const validation_criteria & | lhs, |
const validation_criteria & | rhs ) |
Compare equal when the arguments' rule, level, and action compare equal; otherwise, compare false.
bool operator== | ( | std::string | index, |
const hint & | index_hint ) |
Convenience methods to compare against an index name.
Compares equal if the hint contains a matching index name. Otherwise, compares unequal.
const std::error_category & mongocxx::v_noabi::server_error_category | ( | ) |
Get the error_category for mongocxx library exceptions.
stdx::string_view mongocxx::v_noabi::to_string | ( | log_level | level | ) |
Returns a stringification of the given log level.
level | The type to stringify. |