err=global.GVA_DB.Raw("select table_name from information_schema.tables where table_schema= ? and table_type= ? ",dbName,"base table").Scan(&TableNames).Error
returnerr,TableNames
}
funcGetDB()(errerror,DBNames[]request.DBReq){
err=global.GVA_DB.Raw("SELECT SCHEMA_NAME AS `database` FROM INFORMATION_SCHEMA.SCHEMATA;").Scan(&DBNames).Error
err=global.GVA_DB.Raw("select COLUMN_NAME as 'colume_name', DATA_TYPE as 'data_type', COLUMN_COMMENT as 'colume_comment' from information_schema.COLUMNS where table_name = ? and table_schema = ?",tableName,dbName).Scan(&Columes).Error