Files
EdgeAPI/internal/setup/sql_dump_result.go

17 lines
306 B
Go
Raw Normal View History

2020-11-16 23:30:47 +08:00
package setup
import "strings"
2020-11-16 23:30:47 +08:00
type SQLDumpResult struct {
Tables []*SQLTable `json:"tables"`
}
func (this *SQLDumpResult) FindTable(tableName string) *SQLTable {
for _, table := range this.Tables {
if strings.ToLower(table.Name) == strings.ToLower(tableName) {
2020-11-16 23:30:47 +08:00
return table
}
}
return nil
}