Merge branch 'master' into master

This commit is contained in:
wclssdn
2020-04-06 17:09:38 +08:00
committed by GitHub
23 changed files with 224 additions and 60 deletions

View File

@@ -60,9 +60,20 @@ func (m *mysqlModel) GetPkgName() string {
}
func getPackageInfo(orm *mysqldb.MySqlDB, info *model.DBInfo) {
tables := getTables(orm) // get table and notes
for tabName, notes := range tables {
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
tab.Notes = notes