mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			289 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			289 B
		
	
	
	
		
			Go
		
	
	
	
	
	
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
 | 
						|
}
 |