The top-level namespace within which all mongocxx library entities are declared.
In addition to declaring ABI namespaces (v_noabi, v1, etc.), this namespace also provides "redeclarations" of entities within ABI namespaces. These redeclarations are intended to be the preferred method for using mongocxx library entities when ABI stability of the mongocxx library is NOT a requirement by the user. See Root Namespace Redeclarations.
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 | v1 |
| Declares entities whose ABI stability is guaranteed for documented symbols. | |
| namespace | v_noabi |
| Declares entities whose ABI stability is NOT guaranteed. | |
Classes | |
| class | authentication_exception |
| Unused. To be removed in an upcoming major release. More... | |
| class | bulk_write |
| A batch of write operations that can be sent to the server as a group. More... | |
| class | bulk_write_exception |
| An exception thrown during a bulk write operation. More... | |
| class | change_stream |
| A MongoDB change stream. More... | |
| class | client |
| A client connection to a MongoDB server. More... | |
| class | client_bulk_write |
| A list of bulk write operations. Unlike mongocxx::v1::bulk_write, this supports writes across more than one collection and can group inserts, updates, and deletes in the same network payload. More... | |
| class | client_encryption |
| Supports MongoDB Client-Side Field Level Encryption operations. More... | |
| class | client_session |
| Supports MongoDB client session operations. More... | |
| class | collection |
| A MongoDB collection. More... | |
| class | cursor |
| A cursor over the documents returned by a query to a MongoDB server. More... | |
| class | database |
| A MongoDB database. More... | |
| class | default_logger |
| A tag type representing mongoc's default unstructured log handler. More... | |
| class | exception |
| Base class for all exceptions thrown by the mongocxx library unless otherwise specified. More... | |
| class | gridfs_exception |
| An exception thrown during a GridFS operation. More... | |
| class | hint |
| The index to "hint" or force a MongoDB server to use when performing a query. More... | |
| class | index_model |
| Used by mongocxx::v_noabi::index_view. More... | |
| class | index_view |
| A MongoDB index. More... | |
| class | instance |
| An instance of the MongoDB C++ Driver. More... | |
| class | logger |
| The interface for an unstructured log message handler. More... | |
| class | logger_guard |
| A scope guard to temporarily replace the current unstructured log message handler. More... | |
| class | logic_error |
| An exception thrown due to incorrect use of mongocxx interfaces. More... | |
| class | oidc_callback_params |
| Parameters passed to an OIDC callback. More... | |
| class | oidc_credential |
| The credential returned by an OIDC callback. More... | |
| class | operation_exception |
| An exception thrown during a MongoDB server operation. More... | |
| class | pipeline |
| A MongoDB aggregation pipeline. More... | |
| class | pool |
| A pool of reusable client objects connected to the same MongoDB topology. More... | |
| class | query_exception |
| An exception thrown during a query operation. More... | |
| class | read_concern |
| Controls the consistency and isolation properties of data read from replica sets and sharded clusters. More... | |
| class | read_preference |
| Describes how MongoDB clients route read operations to the members of a replica set or sharded cluster. More... | |
| class | search_index_model |
| Used by mongocxx::v_noabi::search_index_view. More... | |
| class | search_index_view |
| A MongoDB Atlas Search Index. More... | |
| class | string_options |
| Options related to string queries for Queryable Encryption. More... | |
| class | text_options |
| Options related to text queries for Queryable Encryption. More... | |
| class | uri |
| A MongoDB connection string URI. More... | |
| class | validation_criteria |
| Supports creating validation rules for fields. More... | |
| class | write_concern |
| The level of acknowledgment requested for write operations to a MongoDB server. More... | |
| class | write_exception |
| An exception thrown during a write operation. More... | |
Typedefs | |
| using | log_handler |
| The type of an unstructured log message handler. | |
| using | oidc_callback |
| An OIDC credential callback function. | |
Enumerations | |
| enum class | error_code |
| Errors which may occur during mongocxx library usage. More... | |
| enum class | log_level |
| The log level for an unstructured log message. More... | |
| enum class | server_error_code |
| Errors which may be returned by the server. More... | |
| enum class | write_type |
| Used by mongocxx::v_noabi::model::write. More... | |
Functions | |
| std::error_category const & | 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 (error_code error) |
| Translate a mongocxx::v_noabi::error_code into a std::error_code. | |
| bool | operator== (std::string str, hint const &hint) |
| Convenience methods to compare against an index name. | |
| bool | operator== (std::string str, hint const &hint) |
| Convenience methods to compare against an index name. | |
| std::error_category const & | server_error_category () |
| Get the error_category for mongocxx library exceptions. | |
| void | set_global_logger (log_handler handler) |
| Set the process-global unstructured log message handler to a custom handler. | |
The type of an unstructured log message handler.
The invocable is passed the log level, the message domain, and the message contents (in that order) for each unstructured log message emitted by mongoc.
The invocable must:
An OIDC credential callback function.
The function receives callback parameters and returns an OIDC credential. If the function throws an exception, the exception is caught, an error is logged, and NULL is returned to libmongoc to signal failure.
|
strong |
Errors which may occur during mongocxx library usage.
|
strong |
The log level for an unstructured log message.
|
strong |
Errors which may be returned by the server.
This type is used to represent Int32 server error codeswithout defining the error codes themselves.
|
strong |
Used by mongocxx::v_noabi::model::write.
| std::error_category const & 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::error_code into a std::error_code.
| error | A mongocxx::v_noabi::error_code |
|
inline |
Convenience methods to compare against an index name.
Compares equal if the hint contains a matching index name. Otherwise, compares unequal.
|
inline |
Convenience methods to compare against an index name.
Compares equal if the hint contains a matching index name. Otherwise, compares unequal.
| std::error_category const & mongocxx::v_noabi::server_error_category | ( | ) |
Get the error_category for mongocxx library exceptions.
| void mongocxx::v1::set_global_logger | ( | log_handler | handler | ) |
Set the process-global unstructured log message handler to a custom handler.
Registers the custom unstructured log handler by calling mongoc_log_set_handler(). Unlike the logging behavior configured via mongocxx::v1::instance construction, the handler may be changed any number of times over the lifetime of the instance object.
A copy of handler is stored via type erasure; any compatible invocable is accepted.
| handler | The handler to register. Disable unstructured logging when null (empty). |