whaios / showdocdb Goto Github PK
View Code? Open in Web Editor NEW自动化生成 ShowDoc 数据字典文档
License: Apache License 2.0
自动化生成 ShowDoc 数据字典文档
License: Apache License 2.0
在ReadMe选项里面没有源码编译的选项,
项目怎么进行源码编译呢?
之前看了关闭的问题sql,可以查出来数据,但是没有备注信息【表和字段】;
使用下面的sql可以查出备注信息
【表备注】
SELECT
relname AS tabname,
CAST ( obj_description ( relfilenode, 'pg_class' ) AS VARCHAR ) AS COMMENT
FROM
pg_class C
WHERE
relkind = 'r'
AND relname NOT LIKE'pg_%'
AND relname NOT LIKE'sql_%'
ORDER BY
relname
【表字段备注】
SELECT
A.attname AS field_name,-- 字段名
t.typname as typename, --字段类型
NULLIF(information_schema._pg_char_max_length(A.atttypid, A.atttypmod), -1) AS maxlen, -- 字符串最大长度
col_description ( A.attrelid, A.attnum ) AS COMMENT, -- 字段备注
format_type ( A.atttypid, A.atttypmod ) AS TYPE,
A.attnotnull AS NOTNULL , -- 是否非空
A.atthasdef --是否存在默认值
FROM
pg_class AS C,
pg_attribute AS A ,
pg_type as T
WHERE
C.relname = 'plan'
AND A.attrelid = C.oid
AND A.atttypid= T.oid
AND A.attnum > 0
AND NOT A.attisdropped
通过配置一直报标题的问题,如何解决???
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.