mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feat: 数据库查询结果导出&其他小问题修复
This commit is contained in:
@@ -589,7 +589,7 @@ func (mm *MysqlMetadata) GetTableInfos() []map[string]interface{} {
|
||||
|
||||
// 获取表索引信息
|
||||
func (mm *MysqlMetadata) GetTableIndex(tableName string) []map[string]interface{} {
|
||||
_, res, _ := mm.di.SelectData(MYSQL_INDEX_INFO)
|
||||
_, res, _ := mm.di.SelectData(fmt.Sprintf(MYSQL_INDEX_INFO, tableName))
|
||||
return res
|
||||
}
|
||||
|
||||
@@ -708,7 +708,7 @@ func (pm *PgsqlMetadata) GetTableInfos() []map[string]interface{} {
|
||||
|
||||
// 获取表索引信息
|
||||
func (pm *PgsqlMetadata) GetTableIndex(tableName string) []map[string]interface{} {
|
||||
_, res, _ := pm.di.SelectData(PGSQL_INDEX_INFO)
|
||||
_, res, _ := pm.di.SelectData(fmt.Sprintf(PGSQL_INDEX_INFO, tableName))
|
||||
return res
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user