func (r *Result) SetTableComment(tableName string, tableComment string) {
	r.TableComments[tableName] = tableComment
}
SetTableComment sets table comment of corresponding table
package parser
import (
	"github.com/romberli/go-util/common"
	"github.com/romberli/go-util/constant"
)
type Result struct {
	SQLType        string              `json:"sql_type"`
	TableDBListMap map[string][]string `json:"table_db_list_map"`
	DBNames        []string            `json:"db_names"`
	TableNames     []string            `json:"table_names"`
	TableComments  map[string]string   `json:"table_comments"`
	ColumnNames    []string            `json:"column_names"`
	ColumnTypes    map[string]string   `json:"column_types"`
	ColumnComments map[string]string   `json:"column_comments"`
}
func NewResult(sqlType string, TableDBListMap map[string][]string, dbNames []string, tableNames []string,
	tableComments map[string]string, columnNames []string, columnTypes map[string]string,
	columnComments map[string]string) *Result {
	return &Result{
		SQLType:        sqlType,
		TableDBListMap: TableDBListMap,
		DBNames:        dbNames,
		TableNames:     tableNames,
		TableComments:  tableComments,
		ColumnNames:    columnNames,
		ColumnTypes:    columnTypes,
		ColumnComments: columnComments,
	}
}
func NewEmptyResult() *Result {
	return &Result{
		SQLType:        constant.EmptyString,
		TableDBListMap: make(map[string][]string),
		DBNames:        []string{},
		TableNames:     []string{},
		TableComments:  make(map[string]string),
		ColumnNames:    []string{},
		ColumnTypes:    make(map[string]string),
		ColumnComments: make(map[string]string),
	}
}
func (r *Result) GetSQLType() string {
	return r.SQLType
}
func (r *Result) GetTableDBListMap() map[string][]string {
	return r.TableDBListMap
}
func (r *Result) GetDBNames() []string {
	return r.DBNames
}
func (r *Result) GetTableNames() []string {
	return r.TableNames
}
func (r *Result) GetTableComments() map[string]string {
	return r.TableComments
}
func (r *Result) GetColumnNames() []string {
	return r.ColumnNames
}
func (r *Result) GetColumnTypes() map[string]string {
	return r.ColumnTypes
}
func (r *Result) GetColumnComments() map[string]string {
	return r.ColumnComments
}
func (r *Result) SetSQLType(sqlType string) {
	r.SQLType = sqlType
}
func (r *Result) AddTableDBListMap(tableName string, dbName string) {
	dbList, ok := r.TableDBListMap[tableName]
	if !ok {
		r.TableDBListMap[tableName] = []string{dbName}
	}
	if ok && !common.StringInSlice(dbList, dbName) {
		r.TableDBListMap[tableName] = append(dbList, dbName)
	}
}
func (r *Result) AddDBName(dbName string) {
	if !common.StringInSlice(r.DBNames, dbName) {
		r.DBNames = append(r.DBNames, dbName)
	}
}
func (r *Result) AddTableName(tableName string) {
	if !common.StringInSlice(r.TableNames, tableName) {
		r.TableNames = append(r.TableNames, tableName)
	}
}