mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 01:20:25 +08:00
15 lines
254 B
Go
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
|
||
|
|
}
|