修改SQL对比算法

This commit is contained in:
刘祥超
2020-11-16 23:30:47 +08:00
parent 1c703dd013
commit e76ba5cc6b
21 changed files with 588 additions and 1512 deletions

View File

@@ -0,0 +1,14 @@
package setup
type SQLDumpResult struct {
Tables []*SQLTable `json:"tables"`
}
func (this *SQLDumpResult) FindTable(tableName string) *SQLTable {
for _, table := range this.Tables {
if table.Name == tableName {
return table
}
}
return nil
}