feat: 兼容 Oracle 11g,数据库连接信息迁移到 .env
- 新增 oracle.js(oracledb Thick 模式,11g 必须),查询 USER_TAB_COLUMNS / USER_COL_COMMENTS / USER_TAB_COMMENTS
- 新增 npm run oracle 脚本,依赖 oracledb ^6.4.0
- README 增加 Oracle 前置条件与 macOS Apple 芯片 dmg 安装步骤(绕开 Gatekeeper、清 quarantine)
- mysql.js / postgreSQL.js / oracle.js 全部改为从 .env 读取连接信息,依赖 dotenv ^16.4.5
- 新增 .env.example 模板,.env 已加入 .gitignore
Co-Authored-By:
Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Showing
.env.example
0 → 100644
oracle.js
0 → 100644
package-lock.json
0 → 100644
| ... | @@ -7,10 +7,13 @@ | ... | @@ -7,10 +7,13 @@ |
| "dev": "node mysql.js", | "dev": "node mysql.js", | ||
| "mysql": "node mysql.js", | "mysql": "node mysql.js", | ||
| "pgsql": "node postgreSQL.js", | "pgsql": "node postgreSQL.js", | ||
| "oracle": "node oracle.js", | |||
| "md2drawio": "node mdToDrawio.js" | "md2drawio": "node mdToDrawio.js" | ||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| "dotenv": "^16.4.5", | |||
| "mysql2": "^3.6.0", | "mysql2": "^3.6.0", | ||
| "oracledb": "^6.4.0", | |||
| "pg": "^8.11.3" | "pg": "^8.11.3" | ||
| } | } | ||
| } | } | ||
| \ No newline at end of file |
Please register or sign in to comment