![]()  | 
  
    MySQL 8.0.44
    
   Source Code Documentation 
   | 
 
Represents a MySQL Global Transaction Identifier. More...
#include <gtid.h>
Public Member Functions | |
| Gtid (const Uuid &uuid, gno_t gno) | |
| Construct a new Gtid object.  More... | |
| virtual | ~Gtid () | 
| Destroy the Gtid object.  More... | |
| virtual gno_t | get_gno () const | 
| Get the sequence number of this transaction identifier.  More... | |
| virtual const Uuid & | get_uuid () const | 
| Get the uuid of this transaction identifier.  More... | |
| virtual std::string | to_string () const | 
| Gets a human readable representation of this transaction identifier.  More... | |
| virtual bool | operator== (const Gtid &other) const | 
| Compares two identifiers and returns whether they match or not.  More... | |
| virtual bool | operator!= (const Gtid &other) const | 
| Compares two identifiers and returns whether they are different.  More... | |
| virtual Gtid & | operator= (const Gtid &other) | 
| Copy assignment.  More... | |
| Gtid (const Gtid &other) | |
| Construct a new Gtid object from another one, by deep copying its contents.  More... | |
Static Public Attributes | |
| static const std::string | SEPARATOR_UUID_SEQNO {":"} | 
| In 'UUID:SEQNO', this is the ':'.  More... | |
Protected Attributes | |
| Uuid | m_uuid | 
| gno_t | m_gno {0} | 
Represents a MySQL Global Transaction Identifier.
This class abstracts the representation of a Global Transaction Identifier.
It contains two fields, a UUID and a sequence number.
Construct a new Gtid object.
| uuid | the uuid part of the transaction identifier. | 
| gno | The gno part of the transaction identfier. | 
      
  | 
  virtualdefault | 
Destroy the Gtid object.
| Gtid::Gtid | ( | const Gtid & | other | ) | 
Construct a new Gtid object from another one, by deep copying its contents.
| other | the other gtid to construct this gtid from. | 
      
  | 
  virtual | 
Get the sequence number of this transaction identifier.
      
  | 
  virtual | 
Get the uuid of this transaction identifier.
      
  | 
  virtual | 
Compares two identifiers and returns whether they are different.
| other | The other transaction identifier to compare to this one. | 
Copy assignment.
Note that this operator will do a deep copy of the other identifier.
| other | Copies the uuid and gno of the other identifier. | 
      
  | 
  virtual | 
Compares two identifiers and returns whether they match or not.
| other | The other transaction identifier to compare to this one. | 
      
  | 
  virtual | 
Gets a human readable representation of this transaction identifier.
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  inlinestatic | 
In 'UUID:SEQNO', this is the ':'.