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

Struct MysqlDataAbnormalFixStruct

MySQL/my_data_fix_sql.go:114–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 "(?i)^ALTER\\s+TABLE\\s+(?:`(?:[^`]|``)*`|\\S+)\\.(?:`(?:[^`]|``)*`|\\S+)\\s+(.+?)\\s*;?\\s*$")
113
114type MysqlDataAbnormalFixStruct struct {
115 Schema string
116 Table string
117 RowData string
118 SourceDevice string
119 DestDevice string
120 Sqlwhere string
121 IndexColumnType string
122 ColData []map[string]string
123 IndexType string
124 IndexColumn []string
125 DatafixType string
126 SourceSchema string // 添加源端schema字段
127 CaseSensitiveObjectName string // 是否区分对象名大小写
128 IndexVisibilityMap map[string]string // 索引可见性信息
129 ForeignKeyDefinitions map[string]string // 外键DDL定义信息
130 DestFlavor global.DatabaseFlavor // 目标端数据库类型,用于生成兼容目标端语法的 fix SQL
131 PartitionColumns []string // 分区列列表,用于分区表主键修复
132}
133
134type foreignKeyColumn struct {
135 ordinalPosition int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected