Documentation ¶
Index ¶
- Constants
- func CompareColumn(lhs, rhs *cloudstorage.TableCol) (columnAction, error)
- func GetCurrentTSO(config *TiDBConfig) (uint64, error)
- func GetTiDBTableColumn(db *sql.DB, sourceDatabase, sourceTable string) ([]cloudstorage.TableCol, error)
- func GetTiDBTablePKColumns(db *sql.DB, sourceDatabase, sourceTable string) ([]string, error)
- type ColumnDiff
- type TiDBConfig
Constants ¶
View Source
const ( UNCHANGE columnAction = iota // 0 ADD_COLUMN // 1 DROP_COLUMN MODIFY_COLUMN RENAME_COLUMN )
Variables ¶
This section is empty.
Functions ¶
func CompareColumn ¶
func CompareColumn(lhs, rhs *cloudstorage.TableCol) (columnAction, error)
func GetCurrentTSO ¶
func GetCurrentTSO(config *TiDBConfig) (uint64, error)
func GetTiDBTableColumn ¶
Types ¶
type ColumnDiff ¶
type ColumnDiff struct { Action columnAction Before *cloudstorage.TableCol After *cloudstorage.TableCol }
func GetColumnDiff ¶
func GetColumnDiff(prev []cloudstorage.TableCol, curr []cloudstorage.TableCol) ([]ColumnDiff, error)
Click to show internal directories.
Click to hide internal directories.