feat: 代码生成功能适配pg数据库

This commit is contained in:
insistence
2025-02-18 11:36:33 +08:00
parent 15686b44ad
commit 2a486dc01e
11 changed files with 322 additions and 184 deletions

View File

@@ -976,7 +976,7 @@ $BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
create view list_column as
create or replace view list_column as
SELECT c.relname AS table_name,
a.attname AS column_name,
d.description AS column_comment,
@@ -1016,7 +1016,7 @@ WHERE (c.relkind = ANY (ARRAY['r'::"char", 'p'::"char"]))
AND not a.attisdropped
ORDER BY c.relname, a.attnum;
create view list_table as
create or replace view list_table as
SELECT c.relname AS table_name,
obj_description(c.oid) AS table_comment,
CURRENT_TIMESTAMP AS create_time,