package
2.1.1+incompatible
Repository: https://github.com/planetscale/vitess.git
Documentation: pkg.go.dev
# Functions
AppendGTID returns a new Position that represents the position after the given GTID is replicated.
CellValue returns the data for a cell as a sqltypes.Value, and how many bytes it takes.
DecodeGTID converts a string in the format returned by EncodeGTID back into a GTID interface value with the correct underlying flavor.
DecodePosition converts a string in the format returned by EncodePosition back into a Position value with the correct underlying flavor.
EncodeGTID returns a string that contains both the flavor and value of the GTID, so that the correct parser can be selected when that string is passed to DecodeGTID.
EncodePosition returns a string that contains both the flavor and value of the Position, so that the correct parser can be selected when that string is passed to DecodePosition.
MustDecodeGTID calls DecodeGTID and panics on error.
MustParseGTID calls ParseGTID and panics on error.
MustParsePosition calls ParsePosition and panics on error.
NewDeleteRowsEvent returns an DeleteRows event.
NewFakeBinlogStream returns a simple FakeBinlogStream.
NewFormatDescriptionEvent creates a new FormatDescriptionEvent based on the provided BinlogFormat.
NewIntVarEvent returns an IntVar event.
NewInvalidEvent returns an invalid event (its size is <19).
NewInvalidFormatDescriptionEvent returns an invalid FormatDescriptionEvent.
NewInvalidQueryEvent returns an invalid QueryEvent.
NewMariadbBinlogEvent creates a BinlogEvent instance from given byte array.
NewMariaDBBinlogFormat returns a typical BinlogFormat for MariaDB 10.0.
NewMariaDBGTIDEvent returns a MariaDB specific GTID event.
NewMysql56BinlogEvent creates a BinlogEvent from given byte array.
NewMySQL56BinlogFormat returns a typical BinlogFormat for MySQL 5.6.
NewMysql56GTIDSetFromSIDBlock builds a Mysql56GTIDSet from parsing a SID Block.
NewQueryEvent makes up a QueryEvent based on the Query structure.
NewRotateEvent returns a RotateEvent.
NewServerBitmap returns a bitmap that can hold 'count' bits.
NewTableMapEvent returns a TableMap event.
NewUpdateRowsEvent returns an UpdateRows event.
NewWriteRowsEvent returns a WriteRows event.
NewXIDEvent returns a XID event.
ParseGTID calls the GTID parser for the specified flavor.
ParsePosition calls the parser for the specified flavor.
ParseSID parses an SID in the form used by MySQL 5.6.
# Constants
BinlogChecksumAlgCRC32 indicates that CRC32 checksums are used.
BinlogChecksumAlgOff indicates that checksums are supported but off.
BinlogChecksumAlgUndef indicates that checksums are not supported.
IntVarInsertID is INSERT_ID_EVENT.
IntVarInvalidInt is INVALID_INT_EVENT.
IntVarLastInsertID is LAST_INSERT_ID_EVENT.
MaximumPositionSize is the maximum size of a replication position.
QAutoIncrement is Q_AUTO_INCREMENT.
QCatalog is Q_CATALOG.
QCatalogNZCode is Q_CATALOG_NZ_CODE.
QCharsetCode is Q_CHARSET_CODE.
QFlags2Code is Q_FLAGS2_CODE.
QSQLModeCode is Q_SQL_MODE_CODE.
QTimeZoneCode is Q_TIME_ZONE_CODE.
TypeBit is MYSQL_TYPE_BIT.
TypeBlob is MYSQL_TYPE_BLOB.
TypeDate is MYSQL_TYPE_DATE.
TypeDateTime is MYSQL_TYPE_DATETIME.
TypeDateTime2 is MYSQL_TYPE_DATETIME2.
TypeDecimal is MYSQL_TYPE_DECIMAL.
TypeDouble is MYSQL_TYPE_DOUBLE.
TypeEnum is MYSQL_TYPE_ENUM.
TypeFloat is MYSQL_TYPE_FLOAT.
TypeGeometry is MYSQL_TYPE_GEOMETRY.
TypeInt24 is MYSQL_TYPE_INT24.
TypeJSON is MYSQL_TYPE_JSON.
TypeLong is MYSQL_TYPE_LONG.
TypeLongBlob is MYSQL_TYPE_LONG_BLOB.
TypeLongLong is MYSQL_TYPE_LONGLONG.
TypeMediumBlob is MYSQL_TYPE_MEDIUM_BLOB.
TypeNewDate is MYSQL_TYPE_NEWDATE.
TypeNewDecimal is MYSQL_TYPE_NEWDECIMAL.
TypeNull is MYSQL_TYPE_NULL.
TypeSet is MYSQL_TYPE_SET.
TypeShort is MYSQL_TYPE_SHORT.
TypeString is MYSQL_TYPE_STRING.
TypeTime is MYSQL_TYPE_TIME.
TypeTime2 is MYSQL_TYPE_TIME2.
TypeTimestamp is MYSQL_TYPE_TIMESTAMP.
TypeTimestamp2 is MYSQL_TYPE_TIMESTAMP2.
TypeTiny is MYSQL_TYPE_TINY.
TypeTinyBlob is MYSQL_TYPE_TINY_BLOB.
TypeVarchar is MYSQL_TYPE_VARCHAR.
TypeVarString is MYSQL_TYPE_VAR_STRING.
TypeYear is MYSQL_TYPE_YEAR.
# Variables
IntVarNames maps a InVar type to the variable name it represents.
ZeroTimestamp is the special value 0 for a timestamp.
# Structs
BinlogFormat contains relevant data from the FORMAT_DESCRIPTION_EVENT.
Bitmap is used by the previous structures.
FakeBinlogStream is used to generate consistent BinlogEvent packets for a stream.
MariadbGTID implements GTID.
Mysql56GTID implements GTID.
Position represents the information necessary to describe which transactions a server has seen, so that it can request a replication stream from a new master that picks up where it left off.
Query contains data from a QUERY_EVENT.
Row contains data for a single Row in a Rows event.
Rows contains data from a {WRITE,UPDATE,DELETE}_ROWS_EVENT.
TableMap contains data from a TABLE_MAP_EVENT.
# Interfaces
BinlogEvent represents a single event from a raw MySQL binlog dump stream.
GTID represents a Global Transaction ID, also known as Transaction Group ID.
GTIDSet represents the set of transactions received or applied by a server.
# Type aliases
Mysql56GTIDSet implements GTIDSet for MySQL 5.6.
SID is the 16-byte unique ID of a MySQL 5.6 server.