package
2.1.0-rc.2+incompatible
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev
# Functions
ColumnsToProto converts a slice of model.ColumnInfo to a slice of tipb.ColumnInfo.
ColumnToProto converts model.ColumnInfo to tipb.ColumnInfo.
FindColumnInfo finds ColumnInfo in cols by name.
GetTableColumnID gets a ID of a column with table ID.
IndexToProto converts a model.IndexInfo to a tipb.IndexInfo.
NewCIStr creates a new CIStr.
NewDDLReorgMeta new a DDLReorgMeta.
NewExtraHandleColInfo mocks a column info for extra handle column.
TSConvert2Time converts timestamp to time.
# Constants
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
List DDL actions.
AddIndexStr is a string related to the operation of "add index".
ExtraHandleID is the column ID of column which we need to append to schema to occupy the handle's position for use of execution phase.
FlagDividedByZeroAsWarning indicates if DividedByZero should be returned as warning.
FlagIgnoreTruncate indicates if truncate error should be ignored.
FlagIgnoreZeroInDate indicates if ZeroInDate error should be ignored.
FlagInInsertStmt indicates if this is a INSERT statement.
FlagInSelectStmt indicates if this is a SELECT statement.
FlagInUpdateOrDeleteStmt indicates if this is a UPDATE statement or a DELETE statement.
FlagOverflowAsWarning indicates if overflow error should be returned as warning.
FlagPadCharToFullLength indicates if sql_mode 'PAD_CHAR_TO_FULL_LENGTH' is set.
FlagTruncateAsWarning indicates if truncate error should be returned as warning.
IndexTypes.
IndexTypes.
IndexTypes.
List job states.
JobStateCancelling is used to mark the DDL job is cancelled by the client, but the DDL work hasn't handle it.
List job states.
List job states.
List job states.
When DDL encountered an unrecoverable error at reorganization state, some keys has been added already, we need to remove them.
List job states.
JobStateSynced is used to mark the information about the completion of this job has been synchronized to all servers.
Partition types.
Partition types.
Partition types.
StateDeleteOnly means we can only delete items for this schema element.
StateDeleteReorganization means we are re-organizing whole data after delete only state.
StateNone means this schema element is absent and can't be used.
StatePublic means this schema element is ok for all write and read operations.
StateWriteOnly means we can use any write operation on this schema element, but outer can't read the changed data.
StateWriteReorganization means we are re-organizing whole data after write only state.
# Variables
ExtraHandleName is the name of ExtraHandle Column.
# Structs
CIStr is case insensitive string.
ColumnInfo provides meta data describing of a table column.
DBInfo provides meta data describing a DB.
DDLReorgMeta is meta info of DDL reorganization.
FKInfo provides meta data describing a foreign key constraint.
HistoryInfo is used for binlog.
IndexColumn provides index column info.
IndexInfo provides meta data describing a DB index.
Job is for a DDL operation.
PartitionDefinition defines a single partition.
PartitionInfo provides table partition info.
SchemaDiff contains the schema modification at a particular schema version.
TableInfo provides meta data describing a DB table.
# Type aliases
ActionType is the type for DDL action.
IndexType is the type of index.
JobState is for job state.
PartitionType is the type for PartitionInfo.
SchemaState is the state for schema elements.