mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
数据集
This commit is contained in:
@@ -109,3 +109,8 @@ func (pm *PgsqlMetadata) GetTableIndex(tableName string) []map[string]interface{
|
||||
func (pm *PgsqlMetadata) GetTableRecord(tableName string, pageNum, pageSize int) ([]string, []map[string]interface{}, error) {
|
||||
return pm.di.SelectData(fmt.Sprintf("SELECT * FROM %s OFFSET %d LIMIT %d", tableName, (pageNum-1)*pageSize, pageSize))
|
||||
}
|
||||
|
||||
// 获取所有Schema
|
||||
func (pm *PgsqlMetadata) GetSchemas() ([]string, []map[string]interface{}, error) {
|
||||
return pm.di.SelectData("SELECT schema_name FROM information_schema.schemata")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user