feat: 脚本兼容Python 3.9, 抽取更多公共代码; 更新使用文档

This commit is contained in:
dhb52
2024-05-02 23:38:56 +08:00
parent d98419b03f
commit 6d19690bea
2 changed files with 159 additions and 153 deletions

View File

@ -50,8 +50,16 @@ TODO 暂未支持
使用方式如下:
```Bash
python3 convertor.py
安装依赖库
```bash
pip install simple-ddl-parser
```
然后TODO
执行如下命令打印生成 postgresql 的脚本内容其他可选参数有oracle, sqlserver
```Bash
python3 convertor.py postgres
```
程序将sql脚本打印到终端可以重定向到临时文件tmp.sql, 确认无误后可以利用IDEA专业版进行格式化。