Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2019 Changes in this version + const AddIndexStr + const ColumnInfoVersion0 + const ColumnInfoVersion1 + const CurrLatestTableInfoVersion + const ExtraHandleID + const FlagDividedByZeroAsWarning + const FlagIgnoreTruncate + const FlagIgnoreZeroInDate + const FlagInInsertStmt + const FlagInSelectStmt + const FlagInUpdateOrDeleteStmt + const FlagOverflowAsWarning + const FlagPadCharToFullLength + const FlagTruncateAsWarning + const TableInfoVersion0 + const TableInfoVersion1 + var ExtraHandleName = NewCIStr("_tidb_rowid") + func ColumnToProto(c *ColumnInfo) *tipb.ColumnInfo + func ColumnsToProto(columns []*ColumnInfo, pkIsHandle bool) []*tipb.ColumnInfo + func IndexToProto(t *TableInfo, idx *IndexInfo) *tipb.IndexInfo + func TSConvert2Time(ts uint64) time.Time + type ActionType byte + const ActionAddColumn + const ActionAddForeignKey + const ActionAddIndex + const ActionAddTablePartition + const ActionCreateSchema + const ActionCreateTable + const ActionCreateView + const ActionDropColumn + const ActionDropForeignKey + const ActionDropIndex + const ActionDropSchema + const ActionDropTable + const ActionDropTablePartition + const ActionDropView + const ActionModifyColumn + const ActionModifyTableCharsetAndCollate + const ActionModifyTableComment + const ActionNone + const ActionRebaseAutoID + const ActionRenameIndex + const ActionRenameTable + const ActionRestoreTable + const ActionSetDefaultValue + const ActionShardRowID + const ActionTruncateTable + const ActionTruncateTablePartition + func (action ActionType) String() string + type CIStr struct + L string + O string + func NewCIStr(s string) (cs CIStr) + func (cis *CIStr) UnmarshalJSON(b []byte) error + func (cis CIStr) String() string + type ColumnInfo struct + Comment string + DefaultValue interface{} + DefaultValueBit []byte + Dependences map[string]struct{} + GeneratedExprString string + GeneratedStored bool + ID int64 + Name CIStr + Offset int + OriginDefaultValue interface{} + State SchemaState + Version uint64 + func FindColumnInfo(cols []*ColumnInfo, name string) *ColumnInfo + func NewExtraHandleColInfo() *ColumnInfo + func (c *ColumnInfo) Clone() *ColumnInfo + func (c *ColumnInfo) GetDefaultValue() interface{} + func (c *ColumnInfo) IsGenerated() bool + func (c *ColumnInfo) SetDefaultValue(value interface{}) error + type DBInfo struct + Charset string + Collate string + ID int64 + Name CIStr + State SchemaState + Tables []*TableInfo + func (db *DBInfo) Clone() *DBInfo + func (db *DBInfo) Copy() *DBInfo + type DDLReorgMeta struct + EndHandle int64 + func NewDDLReorgMeta() *DDLReorgMeta + type FKInfo struct + Cols []CIStr + ID int64 + Name CIStr + OnDelete int + OnUpdate int + RefCols []CIStr + RefTable CIStr + State SchemaState + func (fk *FKInfo) Clone() *FKInfo + type HistoryInfo struct + DBInfo *DBInfo + FinishedTS uint64 + SchemaVersion int64 + TableInfo *TableInfo + func (h *HistoryInfo) AddDBInfo(schemaVer int64, dbInfo *DBInfo) + func (h *HistoryInfo) AddTableInfo(schemaVer int64, tblInfo *TableInfo) + func (h *HistoryInfo) Clean() + type IndexColumn struct + Length int + Name CIStr + Offset int + func (i *IndexColumn) Clone() *IndexColumn + type IndexInfo struct + Columns []*IndexColumn + Comment string + ID int64 + Name CIStr + Primary bool + State SchemaState + Table CIStr + Tp IndexType + Unique bool + func (index *IndexInfo) Clone() *IndexInfo + func (index *IndexInfo) HasPrefixIndex() bool + type IndexType int + const IndexTypeBtree + const IndexTypeHash + const IndexTypeInvalid + func (t IndexType) String() string + type Job struct + Args []interface{} + BinlogInfo *HistoryInfo + DependencyID int64 + Error *terror.Error + ErrorCount int64 + ID int64 + Mu sync.Mutex + Priority int + Query string + RawArgs json.RawMessage + ReorgMeta *DDLReorgMeta + RowCount int64 + SchemaID int64 + SchemaState SchemaState + SnapshotVer uint64 + StartTS uint64 + State JobState + TableID int64 + Type ActionType + Version int64 + func (job *Job) Decode(b []byte) error + func (job *Job) DecodeArgs(args ...interface{}) error + func (job *Job) Encode(updateRawArgs bool) ([]byte, error) + func (job *Job) FinishDBJob(jobState JobState, schemaState SchemaState, ver int64, dbInfo *DBInfo) + func (job *Job) FinishTableJob(jobState JobState, schemaState SchemaState, ver int64, tblInfo *TableInfo) + func (job *Job) GetRowCount() int64 + func (job *Job) IsCancelled() bool + func (job *Job) IsCancelling() bool + func (job *Job) IsDependentOn(other *Job) (bool, error) + func (job *Job) IsDone() bool + func (job *Job) IsFinished() bool + func (job *Job) IsRollbackDone() bool + func (job *Job) IsRollingback() bool + func (job *Job) IsRunning() bool + func (job *Job) IsSynced() bool + func (job *Job) SetRowCount(count int64) + func (job *Job) String() string + type JobState byte + const JobStateCancelled + const JobStateCancelling + const JobStateDone + const JobStateNone + const JobStateRollbackDone + const JobStateRollingback + const JobStateRunning + const JobStateSynced + func (s JobState) String() string + type PartitionDefinition struct + Comment string + ID int64 + LessThan []string + Name CIStr + type PartitionInfo struct + Columns []CIStr + Definitions []PartitionDefinition + Enable bool + Expr string + Num uint64 + Type PartitionType + func (pi *PartitionInfo) GetNameByID(id int64) string + type PartitionType int + const PartitionTypeHash + const PartitionTypeList + const PartitionTypeRange + func (p PartitionType) String() string + type SchemaDiff struct + OldSchemaID int64 + OldTableID int64 + SchemaID int64 + TableID int64 + Type ActionType + Version int64 + type SchemaState byte + const StateDeleteOnly + const StateDeleteReorganization + const StateNone + const StatePublic + const StateWriteOnly + const StateWriteReorganization + func (s SchemaState) String() string + type TableColumnID struct + ColumnID int64 + TableID int64 + type TableInfo struct + AutoIncID int64 + Charset string + Collate string + Columns []*ColumnInfo + Comment string + Compression string + ForeignKeys []*FKInfo + ID int64 + Indices []*IndexInfo + MaxColumnID int64 + MaxIndexID int64 + Name CIStr + OldSchemaID int64 + PKIsHandle bool + Partition *PartitionInfo + ShardRowIDBits uint64 + State SchemaState + UpdateTS uint64 + Version uint16 + View *ViewInfo + func (t *TableInfo) Clone() *TableInfo + func (t *TableInfo) Cols() []*ColumnInfo + func (t *TableInfo) ColumnIsInIndex(c *ColumnInfo) bool + func (t *TableInfo) GetAutoIncrementColInfo() *ColumnInfo + func (t *TableInfo) GetDBID(dbID int64) int64 + func (t *TableInfo) GetPartitionInfo() *PartitionInfo + func (t *TableInfo) GetPkColInfo() *ColumnInfo + func (t *TableInfo) GetPkName() CIStr + func (t *TableInfo) GetUpdateTime() time.Time + func (t *TableInfo) IsAutoIncColUnsigned() bool + func (t *TableInfo) IsView() bool + type ViewAlgorithm int + const AlgorithmMerge + const AlgorithmTemptable + const AlgorithmUndefined + func (v *ViewAlgorithm) String() string + type ViewCheckOption int + const CheckOptionCascaded + const CheckOptionLocal + func (v *ViewCheckOption) String() string + type ViewInfo struct + Algorithm ViewAlgorithm + CheckOption ViewCheckOption + Cols []CIStr + Definer *auth.UserIdentity + Security ViewSecurity + SelectStmt string + type ViewSecurity int + const SecurityDefiner + const SecurityInvoker + func (v *ViewSecurity) String() string