MCPcopy Create free account
hub / github.com/GreatSQL/gt-checksum / DataAbnormalFixInterface

Interface DataAbnormalFixInterface

dbExec/data_fixsql.go:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 PartitionColumns []string // 分区表的分区列,用于生成正确的主键定义
27}
28type DataAbnormalFixInterface interface {
29 FixInsertSqlExec(db *sql.DB, sourceDrive string, logThreadSeq int64) (string, error)
30 FixDeleteSqlExec(db *sql.DB, sourceDrive string, logThreadSeq int64) (string, error)
31 // FixUpdateSqlExec generates UPDATE SET <compareColNames> WHERE <pk> for columns-mode two-sided rows.
32 // srcRowData is the source-side row data string; ColData on the receiver must match the filtered column list.
33 // srcToDstCol maps source column names to destination column names for the SET clause; nil or empty means names are identical.
34 FixUpdateSqlExec(db *sql.DB, srcRowData string, compareColNames []string, srcToDstCol map[string]string, logThreadSeq int64) (string, error)
35 FixAlterIndexSqlExec(e, f []string, si map[string][]string, sourceDrive string, logThreadSeq int64) []string
36 FixAlterColumnSqlDispos(alterType string, columnDataType []string, columnSeq int, lastColumn, curryColumn string, logThreadSeq int64) string
37 FixAlterColumnSqlGenerate(modifyColumn []string, logThreadSeq int64) []string
38 FixAlterColumnAndIndexSqlGenerate(columnOperations, indexOperations []string, logThreadSeq int64) []string
39 FixAlterIndexSqlGenerate(indexOperations []string, logThreadSeq int64) []string
40 FixTableCharsetSqlGenerate(charset, collation string, logThreadSeq int64) []string
41 FixTableAutoIncrementSqlGenerate(nextValue int64, logThreadSeq int64) []string
42}
43
44type unsupportedDataAbnormalFix struct {
45 destDevice string

Implementers 3

MysqlDataAbnormalFixStructMySQL/my_data_fix_sql.go
OracleDataAbnormalFixStructOracle/or_data_fix_sql.go
unsupportedDataAbnormalFixdbExec/data_fixsql.go

Calls

no outgoing calls

Tested by

no test coverage detected