增加新特性,并修复一些问题
This commit is contained in:
@@ -60,6 +60,18 @@ func (m *mysqlModel) GetPkgName() string {
|
||||
|
||||
func getPackageInfo(orm *mysqldb.MySqlDB, info *model.DBInfo) {
|
||||
tabls := getTables(orm) // get table and notes
|
||||
if m := config.GetTableList(); len(m) > 0 {
|
||||
// 制定了表之后
|
||||
newTabls := make(map[string]string)
|
||||
for t := range m {
|
||||
if notes, ok := tabls[t]; ok {
|
||||
newTabls[t] = notes
|
||||
} else {
|
||||
fmt.Printf("table: %s not found in db\n", t)
|
||||
}
|
||||
}
|
||||
tabls = newTabls
|
||||
}
|
||||
for tabName, notes := range tabls {
|
||||
var tab model.TabInfo
|
||||
tab.Name = tabName
|
||||
|
||||
Reference in New Issue
Block a user