55 const
bsoncxx::v_noabi::stdx::optional<
bsoncxx::v_noabi::document::view_or_value>&)
148 return to_document_deprecated();
178using ::mongocxx::v_noabi::operator==;
179using ::mongocxx::v_noabi::operator!=;
190#if defined(MONGOCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
A polyfill for std::optional<T>.
Definition optional.hpp:826
Class representing criteria for document validation, to be applied to a collection.
Definition validation_criteria.hpp:33
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > & rule() const
Gets the validation rule for this validation object.
MONGOCXX_DEPRECATED bsoncxx::v_noabi::document::value to_document() const
Returns a bson document representing this set of validation criteria.
const bsoncxx::v_noabi::stdx::optional< validation_level > & level() const
Gets the validation level.
validation_criteria & level(validation_level level)
Sets a validation level.
validation_action
A class to represent the different validation action options.
Definition validation_criteria.hpp:97
@ k_error
Reject any insertion or update that violates the validation criteria.
@ k_warn
Log any violations of the validation criteria, but allow the insertion or update to proceed.
validation_level
A class to represent the different validation level options.
Definition validation_criteria.hpp:61
@ k_moderate
Apply validation rules to inserts, and apply validation rules to updates only if the document to be u...
@ k_strict
Apply validation rules to all inserts and updates.
@ k_off
Disable validation entirely.
validation_criteria & action(validation_action action)
Sets a validation action to run when documents failing validation are inserted or modified.
MONGOCXX_DEPRECATED operator bsoncxx::v_noabi::document::value() const
Definition validation_criteria.hpp:147
const bsoncxx::v_noabi::stdx::optional< validation_action > & action() const
Gets the validation action to run when documents failing validation are inserted or modified.
Provides bsoncxx::v_noabi::document::view_or_value.
#define MONGOCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition fwd.hpp:212
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:204
The mongocxx macro guard postlude header.
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace within which all mongocxx library entities are declared.
bool operator!=(const v_noabi::hint &index_hint, std::string index)
mongocxx::v_noabi::operator!=(const v_noabi::hint& index_hint, std::string index)
bool operator==(std::string index, const v_noabi::hint &index_hint)
mongocxx::v_noabi::operator==(std::string index, const v_noabi::hint& index_hint)
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::validation_criteria.