refactor: code review

This commit is contained in:
meilin.huang
2023-11-27 17:40:47 +08:00
parent b9570d9a5f
commit e4447e6bc2
13 changed files with 330 additions and 238 deletions

View File

@@ -52,7 +52,7 @@ SELECT
case when column_default like 'nextval%%' then 'PRI' else '' end "columnKey",
col_description((table_schema || '.' || table_name)::regclass, ordinal_position) AS "columnComment"
FROM information_schema.columns
WHERE table_schema = (select current_schema()) and table_name = %s
WHERE table_schema = (select current_schema()) and table_name in (%s)
order by table_name, ordinal_position
---------------------------------------
--PGSQL_TABLE_DDL_FUNC 表ddl函数