agent-database-cli 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ MySQL · PostgreSQL · Redis · Oracle · MongoDB · 只读模式 · 命令黑
|
|
|
42
42
|
| PostgreSQL | `postgres` | Rust 原生驱动 `tokio-postgres` | 暂不支持切换 |
|
|
43
43
|
| Redis 单机 | `redis` | Rust 原生驱动 `redis` | 仅配置 `url` |
|
|
44
44
|
| Redis 集群 | `redis` | Rust 原生驱动 `redis` | 同时配置 `url` 和 `redisCluster.nodes` |
|
|
45
|
-
| Oracle | `oracle` | SQLcl |
|
|
45
|
+
| Oracle | `oracle` | SQLcl | 支持两种驱动:默认 SQLcl (需要自行安装);可切换oracledb(需要 Oracle Instant Client) |
|
|
46
46
|
| MongoDB | `mongodb` | Rust 原生驱动 `mongodb` | 暂不支持切换;可配 `database` 指定默认库 |
|
|
47
47
|
|
|
48
48
|
## 安装
|
|
@@ -107,7 +107,7 @@ AGENT_DATABASE_CLI_CONFIG=/path/to/config.json agent-database-cli list
|
|
|
107
107
|
| `type` | 全部数据库 | 无 | 数据库类型,支持 `mysql`、`postgres`、`redis`、`oracle`、`mongodb` |
|
|
108
108
|
| `url` | 全部数据库 | 无 | 数据库连接 URL;Redis 单机模式直接连接该地址,Redis 集群模式下作为入口节点 URL |
|
|
109
109
|
| `database` | MongoDB | 无 | MongoDB 默认数据库名 |
|
|
110
|
-
| `oracleDriver` | Oracle | `sqlcl` | Oracle
|
|
110
|
+
| `oracleDriver` | Oracle | `sqlcl` | Oracle 驱动:`sqlcl` 或原生驱动 |
|
|
111
111
|
| `sqlclPath` | Oracle SQLcl | 无 | SQLcl 可执行文件路径,仅 `oracleDriver: "sqlcl"` 时使用 |
|
|
112
112
|
| `javaHome` | Oracle SQLcl | 无 | SQLcl 使用的 `JAVA_HOME` |
|
|
113
113
|
| `redisCluster` | Redis | 无 | Redis 集群配置,配置后会使用 Redis Cluster 模式 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-database-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"description": "统一数据库命令行工具,支持只读、黑名单和本地连接守护进程。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"config/docker-test.json"
|
|
25
25
|
],
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@agent-database-cli/darwin-arm64": "0.2.
|
|
28
|
-
"@agent-database-cli/darwin-x64": "0.2.
|
|
29
|
-
"@agent-database-cli/linux-arm64": "0.2.
|
|
30
|
-
"@agent-database-cli/linux-x64": "0.2.
|
|
31
|
-
"@agent-database-cli/win32-x64": "0.2.
|
|
27
|
+
"@agent-database-cli/darwin-arm64": "0.2.15",
|
|
28
|
+
"@agent-database-cli/darwin-x64": "0.2.15",
|
|
29
|
+
"@agent-database-cli/linux-arm64": "0.2.15",
|
|
30
|
+
"@agent-database-cli/linux-x64": "0.2.15",
|
|
31
|
+
"@agent-database-cli/win32-x64": "0.2.15"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|