Files
EdgeAPI/internal/setup/sql_dump_result.go
2020-11-16 23:30:47 +08:00

15 lines
254 B
Go

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
}