#include <gtid_binary_format.h>
◆ Version
The format version. See readme.md for format specifications.
| Enumerator |
|---|
| v0_tagless | Version 0, which does not support tags.
Encoding a nonempty tag with this is undefined behavior. Decoding a tag with this clears the tag without reading any input.
|
| v1_tags | Version 1, which supports tags.
|
| v2_tags_compact | Version 2, which supports tags and is more space-efficient.
|
◆ Version_policy
Policy for choosing a version.
This either a specified version, or 'automatic'.
| Enumerator |
|---|
| v0_tagless | |
| v1_tags | |
| v2_tags_compact | |
| automatic | Encode using an automatically selected format.
Currently, this favors compatibility and uses the minimum version supported by the object type, i.e.:
- v0_tagless if the set does not have tags
- v1_tags if the set has tags.
Decode Gtid sets using whatever format is encoded in the object.
Decode Gtids/Tsids/Uuids/Tags using v1 (which coincides with v2 for these objects).
|
◆ Gtid_binary_format() [1/2]
| mysql::strconv::Gtid_binary_format::Gtid_binary_format |
( |
| ) |
|
|
default |
◆ Gtid_binary_format() [2/2]
| constexpr mysql::strconv::Gtid_binary_format::Gtid_binary_format |
( |
const Version_policy & |
version_policy | ) |
|
|
inlineexplicitconstexpr |
◆ parent()
| auto mysql::strconv::Gtid_binary_format::parent |
( |
| ) |
const |
|
inline |
◆ to_version_policy()
Returns the Version_policy that specifies the given concrete version.
◆ m_version_policy
Policy for the version to use.
Note: user code should rely on the default, which is automatic. Other modes are available only for unittests.
The documentation for this struct was generated from the following file: