mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-15 09:10:24 +08:00
修改SQL对比算法
This commit is contained in:
14
internal/setup/sql_dump_result.go
Normal file
14
internal/setup/sql_dump_result.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user