package
2.0.0-alpha5+incompatible
Repository: https://github.com/littleyang/vitess.git
Documentation: pkg.go.dev

# Functions

AppendGTID returns a new ReplicationPosition that represents the position after the given GTID is replicated.
DbPermissionToProto translates a DbPermission to proto.
DecodeGTID converts a string in the format returned by EncodeGTID back into a GTID interface value with the correct underlying flavor.
DecodeReplicationPosition converts a string in the format returned by EncodeReplicationPosition back into a ReplicationPosition value with the correct underlying flavor.
No description provided by the author
No description provided by the author
DiffSchema generates a report on what's different between two SchemaDefinitions including views.
DiffSchemaToArray diffs two schemas and return the schema diffs if there is any.
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.
EncodeReplicationPosition returns a string that contains both the flavor and value of the ReplicationPosition, so that the correct parser can be selected when that string is passed to DecodeReplicationPosition.
HostPermissionToProto translates a HostPermission to proto.
MustDecodeGTID calls DecodeGTID and panics on error.
MustParseGTID calls ParseGTID and panics on error.
MustParseReplicationPosition calls ParseReplicationPosition and panics on error.
No description provided by the author
No description provided by the author
NewReplicationStatus creates a ReplicationStatus pointing to masterAddr.
No description provided by the author
ParseGTID calls the GTID parser for the specified flavor.
ParseReplicationPosition calls the parser for the specified flavor.
ParseSID parses an SID in the form used by MySQL 5.6.
PermissionsToProto translates a Permissions to proto.
ProtoToDbPermission translates a proto to a DbPermission.
ProtoToHostPermission translates a proto to a HostPermission.
ProtoToPermissions translates a proto to a Permissions.
ProtoToReplicationStatus translates a proto ReplicationStatus, or panics.
ProtoToSchemaDefinition translates a proto to a SchemaDefinition.
ProtoToTableDefinition translates a proto into a TableDefinition.
ProtoToUserPermission translates a proto to a UserPermission.
ReplicationStatusToProto translates a ReplicationStatus to proto, or panics.
SchemaDefinitionToProto translates a SchemaDefinition to proto.
TableDefinitionToProto translates a TableDefinition to proto.
UserPermissionToProto translates a UserPermission to proto.

# Constants

TableBaseTable indicates the table type is a base table.
TableView indicates the table type is a view.

# Structs

DbPermission describes a single row in the mysql.db table Primary key is Host+Db+User.
GTIDField is a concrete struct that contains a GTID interface value.
HostPermission describes a single row in the mysql.host table Primary key is Host+Db.
MariadbGTID implements GTID.
Mysql56GTID implements GTID.
Permissions have all the rows in mysql.{user,db,host} tables, (all rows are sorted by primary key).
ReplicationPosition 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.
ReplicationStatus holds replication information from SHOW SLAVE STATUS.
SchemaChange contains all necessary information to apply a schema change.
SchemaChangeResult contains before and after table schemas for a schema change sql.
SchemaDefinition defines schema for a certain database.
TableDefinition contains all schema information about a table.
UserPermission describes a single row in the mysql.user table Primary key is Host+User PasswordChecksum is the crc64 of the password, for security reasons.

# Interfaces

GTID represents a Global Transaction ID, also known as Transaction Group ID.
GTIDSet represents the set of transactions received or applied by a server.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
Mysql56GTIDSet implements GTIDSet for MySQL 5.6.
SID is the 16-byte unique ID of a MySQL 5.6 server.
TableDefinitions is a list of TableDefinition.
No description provided by the author