Files
EdgeAPI/internal/setup/sql_dump_result.go

17 lines
289 B
Go
Raw Permalink 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 {
2022-09-23 09:28:19 +08:00
if strings.EqualFold(table.Name, tableName) {
2020-11-16 23:30:47 +08:00
return table
}
}
return nil
}