| 26 | PartitionColumns []string // 分区表的分区列,用于生成正确的主键定义 |
| 27 | } |
| 28 | type 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 | |
| 44 | type unsupportedDataAbnormalFix struct { |
| 45 | destDevice string |
no outgoing calls
no test coverage detected