MySQL Connector/C++ 9.1.0
MySQL connector library for C and C++ applications
|
The CollectionOptions class defines collection create/modify options. More...
Public Types | |
enum | Option { REUSE = 1 , VALIDATION = 2 , LAST } |
Collection options More... | |
Public Member Functions | |
CollectionOptions (DbDoc options) | |
Constructor using a document. More... | |
template<typename... Rest> | |
CollectionOptions (Option opt, Rest &&... rest) | |
Construct CollectionOptions from list of Option and value pairs. More... | |
template<typename... Rest> | |
void | set (Rest &&... rest) |
Set list of option and value pairs. More... | |
The CollectionOptions class defines collection create/modify options.
enum Option |
Collection options
Enumerator | |
---|---|
REUSE | Use existing collection. Expects a boolean value. |
VALIDATION | Collection validation options. Expects CollectionValidation or a json string. |
|
inline |
Constructor using a document.
Document example:
Document keys:
reuseExisting
: Same as CollectionOptions::REUSE;validation
: Same as CollectionOptions::VALIDATION;
|
inline |
Construct CollectionOptions from list of Option and value pairs.
CollectionOptions::Option and CollectionValidation::Option can both be used.
Example:
|
inline |
Set list of option and value pairs.