Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RowDatas ¶
type RowDatas struct { Rows []RowData OrderKeyCols []*model.ColumnInfo }
RowDatas is a heap of MergeItems.
func (*RowDatas) Pop ¶
func (r *RowDatas) Pop() (x interface{})
Pop implements heap.Interface's Pop function
type TableDiff ¶
type TableDiff struct { // Schema represents the database name. Schema string `json:"schema"` // Table represents the table name. Table string `json:"table"` // Info is the parser.TableInfo, include some meta infos for this table. // It used for TiDB/MySQL/MySQL Shard sources. Info *model.TableInfo `json:"info"` // columns be ignored IgnoreColumns []string `json:"-"` // field should be the primary key, unique key or field with index Fields string `json:"fields"` // select range, for example: "age > 10 AND age < 20" Range string `json:"range"` // ignore check table's data IgnoreDataCheck bool `json:"-"` // the table has column timestamp, which need to reset time_zone. NeedUnifiedTimeZone bool `json:"-"` Collation string `json:"collation"` ChunkSize int64 `json:"chunk-size"` }
TableDiff saves config for diff table
type TableShardSource ¶
type TableShardSource struct { TableSource // DBConn represents the origin DB connection for this TableSource. // This TableSource may exists in different MySQL shard. DBConn *sql.DB }
TableShardSource represents the origin schema and table and DB connection before router. It used for MySQL Shard source.
type TableSource ¶
TableSource represents the origin schema and table before router. It used for TiDB/MySQL source.
Click to show internal directories.
Click to hide internal directories.