dsh-sql 0.5.5 → 0.5.7
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/CHANGELOG.md +10 -0
- package/README.en.md +8 -3
- package/README.md +8 -3
- package/lib/update-client.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
[返回简介](README.md) · [使用说明](docs/USAGE.md) · [验证记录](docs/VALIDATION.md)
|
|
4
4
|
|
|
5
|
+
## 0.5.7 (2026-10-29)
|
|
6
|
+
|
|
7
|
+
- 补齐中英文使用流程:准备、入口、具体操作与结果核对;新增累计 npm 下载徽章并保留月统计。
|
|
8
|
+
- Add practical getting-started workflows and lifetime npm download badges alongside monthly counts.
|
|
9
|
+
|
|
10
|
+
## 0.5.6 (2026-10-29)
|
|
11
|
+
|
|
12
|
+
- 同步仓库与 npm 的简明介绍、中英文 README 和反馈入口;本次为文档与包元数据更新。
|
|
13
|
+
- Sync npm descriptions and both README guides with the repository, including issue and pull-request links.
|
|
14
|
+
|
|
5
15
|
## 0.5.5 (2026-10-28)
|
|
6
16
|
|
|
7
17
|
- 写入确认与健康检查正确读取会话审批策略。never 或未知策略明确说明操作未执行及恢复方式;保留宿主拒绝、只读限制与完整 SQL 审批摘要。
|
package/README.en.md
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
Connect SQLite, MySQL or PostgreSQL to query data and inspect schemas.
|
|
7
|
+
Connect SQLite, MySQL or PostgreSQL to query data and inspect schemas and statistics from DSH. Includes read-only protection, result and timeout limits, configurable write confirmation and separate connection and permission checks.
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/dsh-sql) [](https://www.npmjs.com/package/dsh-sql)
|
|
9
|
+
[](https://www.npmjs.com/package/dsh-sql) [](https://www.npmjs.com/package/dsh-sql) [](https://www.npmjs.com/package/dsh-sql)
|
|
10
|
+
|
|
11
|
+
[Download statistics](https://github.com/STARDUSTLC666/dsh-suite/blob/npm-downloads/README.md)
|
|
10
12
|
|
|
11
13
|
Feedback and contributions are welcome: report [issues](https://github.com/STARDUSTLC666/dsh-sql/issues) or submit [pull requests](https://github.com/STARDUSTLC666/dsh-sql/pulls).
|
|
12
14
|
|
|
@@ -28,7 +30,10 @@ For the web version, replace `desktop` with `web`. Restart DSH after installatio
|
|
|
28
30
|
|
|
29
31
|
## Start using it
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
1. Add your SQLite, MySQL or PostgreSQL connection in plugin settings and confirm the database.
|
|
34
|
+
2. Inspect the schema first, then query a small set of rows in read-only mode.
|
|
35
|
+
3. Specify filters and result limits; check columns, row counts and truncation.
|
|
36
|
+
4. Enable write access only when needed, review the SQL and connection before confirming, and query again to verify.
|
|
32
37
|
|
|
33
38
|
## Requirements and configuration
|
|
34
39
|
|
package/README.md
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
连接 SQLite、MySQL 或 PostgreSQL
|
|
7
|
+
连接 SQLite、MySQL 或 PostgreSQL,在 DSH 中查询数据、查看表结构与统计。提供只读保护、结果与超时限制、可配置的写操作确认,并分别报告连接和权限状态。
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/dsh-sql) [](https://www.npmjs.com/package/dsh-sql)
|
|
9
|
+
[](https://www.npmjs.com/package/dsh-sql) [](https://www.npmjs.com/package/dsh-sql) [](https://www.npmjs.com/package/dsh-sql)
|
|
10
|
+
|
|
11
|
+
[下载统计说明](https://github.com/STARDUSTLC666/dsh-suite/blob/npm-downloads/README.md)
|
|
10
12
|
|
|
11
13
|
欢迎使用,遇到问题或有改进建议,请提交 [issues](https://github.com/STARDUSTLC666/dsh-sql/issues) 和 [PR](https://github.com/STARDUSTLC666/dsh-sql/pulls)。
|
|
12
14
|
|
|
@@ -28,7 +30,10 @@ dsh plugin --profile desktop add dsh-sql
|
|
|
28
30
|
|
|
29
31
|
## 开始使用
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
1. 在插件设置中添加自己的 SQLite、MySQL 或 PostgreSQL 连接,确认目标数据库。
|
|
34
|
+
2. 先让助手读取表结构,再用只读查询检查少量记录。
|
|
35
|
+
3. 明确查询条件与结果上限,核对返回列、行数和是否被截断。
|
|
36
|
+
4. 确需写入时才启用相应权限,先核对 SQL 和连接再确认;完成后重新查询验证。
|
|
32
37
|
|
|
33
38
|
## 依赖与配置
|
|
34
39
|
|
package/lib/update-client.js
CHANGED
|
@@ -437,7 +437,7 @@ function __stardustUpdatesClient(ctx, React, require, shared) {
|
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
/* STARDUSTLC_UPDATE_CLIENT_BODY_START */
|
|
440
|
-
window.__ModuleLoader__.load(__stardustUpdatesWrap({id:"dsh-sql",factory:require=>({apply(){}})},{"name":"dsh-sql","version":"0.1.0","hasWorkbench":false,"packageVersion":"0.5.
|
|
440
|
+
window.__ModuleLoader__.load(__stardustUpdatesWrap({id:"dsh-sql",factory:require=>({apply(){}})},{"name":"dsh-sql","version":"0.1.0","hasWorkbench":false,"packageVersion":"0.5.7","label":"数据库","labelEn":"SQL","suiteComponent":true}));
|
|
441
441
|
|
|
442
442
|
/* STARDUSTLC_UPDATE_CLIENT_BODY_END */
|
|
443
443
|
})();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-sql",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.7",
|
|
4
|
+
"description": "DSH 数据库工具:SQLite / MySQL / PostgreSQL 查询、结构与统计、只读保护和写操作确认。欢迎提交 issues 和 PR。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|