powerdesigner pdm文件的交互式阅读器
pdmreader的Python项目详细描述
PDM读取器
用于PowerDesignerpdm文件的交互式读取器。
功能:
- 查看/搜索表格
- vew表定义
- 为各种数据库生成ddl(目前支持mysql和oracle)
- 生成Java实体定义
- 支持命令历史记录
要求
- Python3.7+
此工具仅使用python标准库。
安装
# root or administrator permission may be required
pip install pdmreader
如果您想尝试一些未发布的功能,或自己自定义工具,请克隆存储库并在开发模式下安装:
git clone https://github.com/bianjp/pdmreader.git cd pdmreader # root or administrator permission may be required python setup.py development
用法
pdmreader PATH_TO_PDM_FILE
这将启动一个交互式“shell”,您可以键入命令。
键入help
以显示可用的命令。
当前支持的命令:
COMMAND DESCRIPTION
--------------------------------------------------------------------------------
help Print help
t Toggle horizontal/vertical output. Default horizontal
tables Show tables
tables PATTERN Show tables matching the given shell-style glob
seq Show sequences
seq PATTERN Show sequences matching the given shell-style glob
table TABLE Show definitions of the given table
mysql TABLE Generate MySQL DDL for creating the given table
oracle TABLE Generate Oracle DDL for creating the given table
java TABLE Generate Java entity definition for the given table
exit, Ctrl + D Exit
许可证
这个项目是根据麻省理工学院的许可条款授权的。