MySQL 9.6.0
Source Code Documentation
mysql::gtids Namespace Reference

Namespaces

namespace  detail
 

Classes

class  Gtid
 Represents a single Gtid, consisting of a Tsid and a Sequence_number. More...
 
class  Gtid_interval
 Class that defines the Interval type used for Gtid intervals. More...
 
class  Gtid_interval_set
 Class that defines the Interval set type used for Gtid intervals. More...
 
class  Gtid_set
 Class that defines the Set type used for Gtid sets. More...
 
class  Gtid_trivial
 Represents a single Gtid, consisting of a Tsid and a Sequence_number. More...
 
struct  Sequence_number_traits
 Class that defines Set_traits for gtids::Sequence_number. More...
 
class  Tag
 Class representing a tag by storing the characters in a member array. More...
 
class  Tag_trivial
 Class representing a tag by storing the characters in a member array. More...
 
class  Tsid
 
struct  Tsid_traits
 Set_traits used when TSIDs are stored in sets. More...
 
class  Tsid_trivial
 

Concepts

concept  Is_gtid
 
concept  Is_gtid_set
 True for all Gtid set types.
 
concept  Is_tag
 True if Test is one of the tag classes.
 
concept  Is_tsid
 

Typedefs

using Sequence_number = uint64_t
 The type of the sequence number component of a GTID. More...
 

Functions

bool operator== (const Is_gtid auto &gtid1, const Is_gtid auto &gtid2)
 
bool operator!= (const Is_gtid auto &gtid1, const Is_gtid auto &gtid2)
 
auto operator<=> (const Is_gtid auto &gtid1, const Is_gtid auto &gtid2)
 
bool has_tags (const Is_tag auto &tag)
 
bool has_tags_tsid (const Is_tsid auto &tsid)
 
bool has_tags (const Is_gtid auto &gtid)
 
bool has_tags (const Is_gtid_set auto &gtid_set)
 
void old_to_new (const mysql::gtid::Uuid &old_uuid, mysql::uuids::Uuid &new_uuid)
 Copy the legacy Uuid into mysql::uuids::Uuid. More...
 
void old_to_new (const mysql::gtid::Tag &old_tag, mysql::gtids::Tag &new_tag)
 Copy the legacy Tag into mysql::gtids::Tag. More...
 
void old_to_new (const mysql::gtid::Tsid &old_tsid, mysql::gtids::Tsid &new_tsid)
 Copy the legacy Tsid into mysql::gtids::Tsid. More...
 
void old_to_new (const mysql::gtid::Gtid &old_gtid, mysql::gtids::Gtid &new_gtid)
 Copy the legacy Gtid into mysql::gtids::Gtid. More...
 
constexpr bool is_valid_sequence_number (Sequence_number sequence_number)
 Return true if the given Sequence_number is in the allowed range. More...
 
bool operator== (const Is_tag auto &tag1, const Is_tag auto &tag2)
 Enable operator== for mixed tag types. More...
 
bool operator!= (const Is_tag auto &tag1, const Is_tag auto &tag2)
 Enable operator!= for mixed tag types. More...
 
bool operator== (const Is_tsid auto &tsid1, const Is_tsid auto &tsid2)
 
bool operator!= (const Is_tsid auto &tsid1, const Is_tsid auto &tsid2)
 
auto operator<=> (const Is_tsid auto &tsid1, const Is_tsid auto &tsid2)
 

Variables

constexpr Sequence_number sequence_number_max_exclusive
 One plus the largest allowed value for a GTID sequence number. More...
 
constexpr Sequence_number sequence_number_max_inclusive
 The largest allowed value for a GTID sequence number. More...
 
constexpr Sequence_number sequence_number_min = 1
 The smallest allowed value for a GTID sequence number. More...
 

Typedef Documentation

◆ Sequence_number

using mysql::gtids::Sequence_number = typedef uint64_t

The type of the sequence number component of a GTID.

Function Documentation

◆ has_tags() [1/3]

bool mysql::gtids::has_tags ( const Is_gtid auto &  gtid)
Returns
true if the Gtid has a non-empty tag.

◆ has_tags() [2/3]

bool mysql::gtids::has_tags ( const Is_gtid_set auto &  gtid_set)
Returns
true if the Gtid_set has at least one Tsid with non-empty tag.

◆ has_tags() [3/3]

bool mysql::gtids::has_tags ( const Is_tag auto &  tag)
Returns
true if the tag is not empty.

◆ has_tags_tsid()

bool mysql::gtids::has_tags_tsid ( const Is_tsid auto &  tsid)
Returns
true if the Tsid has a non-empty tag.

◆ is_valid_sequence_number()

constexpr bool mysql::gtids::is_valid_sequence_number ( Sequence_number  sequence_number)
constexpr

Return true if the given Sequence_number is in the allowed range.

◆ old_to_new() [1/4]

void mysql::gtids::old_to_new ( const mysql::gtid::Gtid old_gtid,
mysql::gtids::Gtid new_gtid 
)
inline

Copy the legacy Gtid into mysql::gtids::Gtid.

◆ old_to_new() [2/4]

void mysql::gtids::old_to_new ( const mysql::gtid::Tag old_tag,
mysql::gtids::Tag new_tag 
)
inline

Copy the legacy Tag into mysql::gtids::Tag.

◆ old_to_new() [3/4]

void mysql::gtids::old_to_new ( const mysql::gtid::Tsid old_tsid,
mysql::gtids::Tsid new_tsid 
)
inline

Copy the legacy Tsid into mysql::gtids::Tsid.

◆ old_to_new() [4/4]

void mysql::gtids::old_to_new ( const mysql::gtid::Uuid old_uuid,
mysql::uuids::Uuid new_uuid 
)
inline

Copy the legacy Uuid into mysql::uuids::Uuid.

◆ operator!=() [1/3]

bool mysql::gtids::operator!= ( const Is_gtid auto &  gtid1,
const Is_gtid auto &  gtid2 
)

◆ operator!=() [2/3]

bool mysql::gtids::operator!= ( const Is_tag auto &  tag1,
const Is_tag auto &  tag2 
)

Enable operator!= for mixed tag types.

◆ operator!=() [3/3]

bool mysql::gtids::operator!= ( const Is_tsid auto &  tsid1,
const Is_tsid auto &  tsid2 
)

◆ operator<=>() [1/2]

auto mysql::gtids::operator<=> ( const Is_gtid auto &  gtid1,
const Is_gtid auto &  gtid2 
)

◆ operator<=>() [2/2]

auto mysql::gtids::operator<=> ( const Is_tsid auto &  tsid1,
const Is_tsid auto &  tsid2 
)

◆ operator==() [1/3]

bool mysql::gtids::operator== ( const Is_gtid auto &  gtid1,
const Is_gtid auto &  gtid2 
)

◆ operator==() [2/3]

bool mysql::gtids::operator== ( const Is_tag auto &  tag1,
const Is_tag auto &  tag2 
)

Enable operator== for mixed tag types.

◆ operator==() [3/3]

bool mysql::gtids::operator== ( const Is_tsid auto &  tsid1,
const Is_tsid auto &  tsid2 
)

Variable Documentation

◆ sequence_number_max_exclusive

constexpr Sequence_number mysql::gtids::sequence_number_max_exclusive
constexpr
Initial value:
=
ValueType max(X &&first)
Definition: gtid.h:103

One plus the largest allowed value for a GTID sequence number.

◆ sequence_number_max_inclusive

constexpr Sequence_number mysql::gtids::sequence_number_max_inclusive
constexpr
Initial value:
=
constexpr Sequence_number sequence_number_max_exclusive
One plus the largest allowed value for a GTID sequence number.
Definition: sequence_number.h:42

The largest allowed value for a GTID sequence number.

◆ sequence_number_min

constexpr Sequence_number mysql::gtids::sequence_number_min = 1
constexpr

The smallest allowed value for a GTID sequence number.