The configuration information returned by the WiredTiger configuration parsing functions in the WT_EXTENSION_API and the public API. More...
Public Types | |
enum | WT_CONFIG_ITEM_TYPE { WT_CONFIG_ITEM_STRING, WT_CONFIG_ITEM_BOOL, WT_CONFIG_ITEM_ID, WT_CONFIG_ITEM_NUM, WT_CONFIG_ITEM_STRUCT } |
Permitted values of the type field. More... | |
Public Attributes | |
const char * | str |
The value of a configuration string. More... | |
size_t | len |
The number of bytes in the value referenced by str . | |
int64_t | val |
The numeric value of a configuration boolean or integer. More... | |
enum WT_CONFIG_ITEM::WT_CONFIG_ITEM_TYPE | type |
The type of value determined by the parser. More... | |
The configuration information returned by the WiredTiger configuration parsing functions in the WT_EXTENSION_API and the public API.
Permitted values of the type
field.
const char* WT_CONFIG_ITEM::str |
The value of a configuration string.
Regardless of the type of the configuration string (boolean, int, list or string), the str
field will reference the value of the configuration string.
The bytes referenced by str
are not nul-terminated. Use the len
field instead of a terminating nul byte.
enum WT_CONFIG_ITEM::WT_CONFIG_ITEM_TYPE WT_CONFIG_ITEM::type |
The type of value determined by the parser.
In all cases, the str
and len
fields are set.
int64_t WT_CONFIG_ITEM::val |
The numeric value of a configuration boolean or integer.
If the configuration string's value is "true" or "false", the val
field will be set to 1 (true), or 0 (false).
If the configuration string can be legally interpreted as an integer, using the strtoll
function rules as specified in ISO/IEC 9899:1990 ("ISO C90"), that integer will be stored in the val
field.