Initial commit (code only without large binaries)
This commit is contained in:
16
EdgeAPI/internal/setup/sql_dump_result.go
Normal file
16
EdgeAPI/internal/setup/sql_dump_result.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package setup
|
||||
|
||||
import "strings"
|
||||
|
||||
type SQLDumpResult struct {
|
||||
Tables []*SQLTable `json:"tables"`
|
||||
}
|
||||
|
||||
func (this *SQLDumpResult) FindTable(tableName string) *SQLTable {
|
||||
for _, table := range this.Tables {
|
||||
if strings.EqualFold(table.Name, tableName) {
|
||||
return table
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user