Skip to content

Commit 23a4e4b

Browse files
committed
Merge validated PanDB upstream and dependency maintenance
2 parents b74f8b1 + 9bc1cec commit 23a4e4b

6,534 files changed

Lines changed: 2162929 additions & 331335 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.cargo/config.toml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,20 @@ LIBSQLITE3_FLAGS = "SQLITE_ENABLE_MATH_FUNCTIONS"
1919

2020
[target.x86_64-pc-windows-msvc]
2121
linker = "rust-lld"
22+
# Increase main-thread stack from the Windows default of 1 MiB to 8 MiB.
23+
# Large Rust projects in debug mode overflow the 1 MiB stack when DB query
24+
# paths pull in deep serde/driver call stacks. This embeds the size in the PE.
25+
rustflags = ["-C", "link-arg=/STACK:8388608"]
26+
27+
# Native ARM64 builds need the same main-thread stack as x64. Without this,
28+
# opening a query can exhaust the linker's 1 MiB default stack (#13917).
29+
[target.aarch64-pc-windows-msvc]
30+
rustflags = ["-C", "link-arg=/STACK:8388608"]
31+
32+
# The legacy Windows 7 / Server 2012 R2 target keeps the same 8 MiB main-thread
33+
# stack. CI builds it with an explicit RUSTFLAGS env (static CRT), which
34+
# replaces this table, so the same link arg is repeated in those workflows and
35+
# audited by .github/scripts/assert-win7-pe-compat.ps1. Without it the legacy PE
36+
# keeps the 1 MiB default and the app aborts with 0xC00000FD ("DBX 已停止工作").
37+
[target.x86_64-win7-windows-msvc]
38+
rustflags = ["-C", "link-arg=/STACK:8388608"]

‎.gitattributes‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ apps/desktop/tsconfig.json text eol=lf
1111
apps/desktop/*.ts text eol=lf
1212
src-tauri/windows/nsis/**/*.nsi text eol=lf
1313

14+
# Keep plugin dev-host formatting checks consistent on Windows checkouts.
15+
plugins/sdk/dev-host/** text=auto eol=lf
16+
17+
# The vendored WebView2 loaders are hash-pinned build inputs. `-text` disables
18+
# any eol conversion on checkout, because build.rs verifies their raw SHA256.
19+
vendor/webview2-com-sys/**/*.lib -text -diff
20+
vendor/webview2-com-sys/**/*.dll -text -diff
21+
1422
# Keep tests available for review and CI without counting them as shipped code
1523
# in GitHub's repository language breakdown.
1624
packages/app-tests/** linguist-vendored
@@ -30,3 +38,15 @@ packages/**/*.test.ts linguist-vendored
3038
# bytes and fail the guard for a contributor who touched neither file.
3139
crates/dbx-core/assets/docs-export.js -text -diff linguist-generated
3240
crates/dbx-core/assets/docs-export.css -text -diff linguist-generated
41+
42+
# The pnpm launcher fixtures are captured from real installations and baked into
43+
# the Rust unit tests with include_str!, so the bytes those tests hand to the shim
44+
# parser must not depend on the contributor's core.autocrlf: a CRLF checkout
45+
# silently rewrites all three files.
46+
src-tauri/tests/fixtures/** text eol=lf
47+
48+
# Preserve the upstream SQL attachment bytes used by the live MySQL regression.
49+
crates/dbx-core/tests/fixtures/qrtz.sql -text
50+
51+
# Batch launchers retain Windows checkouts while storing normalized text.
52+
*.bat text eol=crlf

‎.github/FUNDING.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ko_fi: dbxio
2+
custom: ['https://t8y2.com/sponsors/', 'https://afdian.com/a/t8y2o']

‎.github/ISSUE_TEMPLATE/bug_report.yml‎

Lines changed: 29 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,58 +7,51 @@ body:
77
attributes:
88
value: |
99
感谢反馈。涉及敏感信息请脱敏。请尽量提供数据库类型、版本、复现步骤、截图和错误日志。
10+
Thanks for reporting this. Redact sensitive information and include the database type/version, reproduction steps, screenshots, and logs when possible.
1011
PanDB 版本、运行环境、操作系统和系统架构可在应用内通过“设置 → 关于我们 → 复制支持信息”一键复制。
11-
12+
You can copy the PanDB version, runtime, operating system, and architecture in the app via “Settings → About → Copy support information”.
1213
- type: input
1314
id: database
1415
attributes:
15-
label: 数据库类型和版本
16-
description: 例如 PostgreSQL 16、MySQL 8.0、Redis 7.2。
17-
placeholder: "例如:PostgreSQL 16.2"
18-
validations:
19-
required: true
20-
16+
label: 数据库类型和版本 / Database type and version
17+
description: 例如 PostgreSQL 16、MySQL 8.0、Redis 7.2。 / For example, PostgreSQL 16, MySQL 8.0, or Redis 7.2.
18+
placeholder: "例如:PostgreSQL 16.2 / Example: PostgreSQL 16.2"
19+
validations: {required: true}
2120
- type: textarea
2221
id: description
2322
attributes:
24-
label: 问题描述
25-
description: 请按下面的清单逐项填写,截图和错误日志尤其重要。
23+
label: 问题描述 / Problem description
24+
description: 请按下面的清单逐项填写。 / Complete each item below.
2625
placeholder: |
27-
1. 复现步骤:新建连接 → 填写信息 → 点击保存
28-
2. 期望结果:能正常展开 schema
29-
3. 实际结果:一直 loading,无错误提示
30-
4. 最好附上截图和错误日志(设置 → 外观 → 启用"启用调试日志" → 复现问题 → 点击"下载日志",将内容粘贴到这里)
31-
validations:
32-
required: true
33-
26+
1. 复现步骤 / Steps: 新建连接 → 填写信息 → 点击保存 / Create connection → enter details → click Save
27+
2. 期望结果 / Expected: 能正常展开 schema / Schema expands normally
28+
3. 实际结果 / Actual: 一直 loading,无错误提示 / Loading never finishes
29+
4. 附上截图和错误日志 / Attach screenshots and logs when possible
30+
validations: {required: true}
3431
- type: textarea
3532
id: support-info
3633
attributes:
37-
label: 支持信息
38-
description: 打开 PanDB 的“设置 → 关于我们”,点击“复制支持信息”,然后粘贴到这里。如无法打开应用,请说明原因。
34+
label: 支持信息 / Support information
35+
description: 粘贴“复制支持信息”的结果;如无法打开应用,请说明原因。 / Paste the copied support information; explain if the app cannot open.
3936
placeholder: |
40-
PanDB 版本:v0.5.52
41-
运行环境:桌面端
42-
操作系统:macOS 26.4
43-
系统架构:aarch64
44-
validations:
45-
required: true
46-
37+
PanDB 版本 / Version: v0.5.52
38+
运行环境 / Runtime: Desktop
39+
操作系统 / OS: macOS 26.4
40+
系统架构 / Architecture: aarch64
41+
validations: {required: true}
4742
- type: dropdown
4843
id: priority
4944
attributes:
50-
label: 优先级(是否紧急)
51-
description: 紧急 = 希望下个版本优先修。维护者可根据实际情况调整。
45+
label: 优先级(是否紧急) / Priority (urgency)
46+
description: 紧急 = 希望下个版本优先修;维护者可调整。 / Urgent means you hope for the next release; maintainers may adjust it.
5247
options:
53-
- "🔴 P0 紧急 · 下个版本必须修"
54-
- "🟠 P1 重要 · 尽快处理"
55-
- "🟡 P2 普通 · 按排期处理"
56-
- "🟢 P3 低优 · 有空再修"
57-
validations:
58-
required: true
59-
48+
- "🔴 P0 紧急 · 下个版本必须修 / Urgent · Must fix next release"
49+
- "🟠 P1 重要 · 尽快处理 / Important · Fix soon"
50+
- "🟡 P2 普通 · 按排期处理 / Normal · Schedule as appropriate"
51+
- "🟢 P3 低优 · 有空再修 / Low · Fix when possible"
52+
validations: {required: true}
6053
- type: textarea
6154
id: extra
6255
attributes:
63-
label: 补充信息
64-
description: 截图、SQL 样例、连接方式、特殊环境等。
56+
label: 补充信息 / Additional information
57+
description: 截图、SQL 样例、连接方式、特殊环境等。 / Screenshots, SQL samples, connection method, or special environments.

‎.github/ISSUE_TEMPLATE/database_compatibility.yml‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,41 @@ body:
77
attributes:
88
value: |
99
用于收集数据库兼容性细节,例如连接失败、schema 读取不完整、字段类型显示错误等。请脱敏。
10-
PanDB 版本、运行环境、操作系统和系统架构可在应用内通过“设置 → 关于我们 → 复制支持信息”一键复制。
10+
This form collects database compatibility details such as connection failures, incomplete schema reads, and incorrect field types. Redact sensitive information.
11+
PanDB 版本、运行环境、操作系统和系统架构可在应用内通过“设置 → 关于我们 → 复制支持信息 / Support information”一键复制。
1112
1213
- type: input
1314
id: database
1415
attributes:
15-
label: 数据库类型和版本
16-
description: 也请注明发行版,如 MariaDB、AWS RDS、TiDB 等。
16+
label: 数据库类型和版本 / Database type and version
17+
description: 也请注明发行版,如 MariaDB、AWS RDS、TiDB 等。 / Include the distribution, such as MariaDB, AWS RDS, or TiDB.
1718
placeholder: "例如:MariaDB 10.11"
1819
validations:
1920
required: true
2021

2122
- type: textarea
2223
id: description
2324
attributes:
24-
label: 问题描述
25-
description: 什么操作,出了什么错,期望怎样?
26-
placeholder: "例如:展开 schema 时报错 'unknown type',期望能正常显示字段。"
25+
label: 问题描述 / Description / Problem description
26+
description: 什么操作,出了什么错,期望怎样? / What did you do, what went wrong, and what did you expect?
27+
# What did you do, what went wrong, and what did you expect?
28+
placeholder: "例如:展开 schema 时报错 'unknown type',期望能正常显示字段。 / Example: expanding a schema reports 'unknown type'; fields should display normally."
2729
validations:
2830
required: true
2931

3032
- type: textarea
3133
id: error
3234
attributes:
33-
label: 错误信息
35+
label: 错误信息 / Error message
3436
render: shell
3537
validations:
3638
required: true
3739

3840
- type: textarea
3941
id: support-info
4042
attributes:
41-
label: 支持信息
42-
description: 打开 PanDB 的“设置 → 关于我们”,点击“复制支持信息”,然后粘贴到这里。如无法打开应用,请说明原因。
43+
label: 支持信息 / Support information
44+
description: 打开 PanDB 的“设置 → 关于我们”,点击“复制支持信息”,然后粘贴到这里。如无法打开应用,请说明原因。 / Open PanDB Settings → About, copy Support Information, and paste it here. Explain if the app cannot open.
4345
placeholder: |
4446
PanDB 版本:v0.5.52
4547
运行环境:桌面端
@@ -51,5 +53,6 @@ body:
5153
- type: textarea
5254
id: extra
5355
attributes:
54-
label: 补充信息
55-
description: 表结构、SQL 样例、截图、部署方式(Docker/云/自建)等。
56+
label: 补充信息 / Additional information
57+
description: 表结构、SQL 样例、截图、部署方式(Docker/云/自建)等。 / Include schema, SQL samples, screenshots, and deployment details (Docker, cloud, or self-hosted).
58+
# Include schema, SQL samples, screenshots, and deployment details (Docker, cloud, or self-hosted).

‎.github/ISSUE_TEMPLATE/feature_request.yml‎

Lines changed: 31 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,64 +6,55 @@ body:
66
- type: markdown
77
attributes:
88
value: |
9-
好的建议最好说明使用场景、数据库类型和期望效果。请尽量避免只写“支持 X”。
9+
好的建议最好说明使用场景、数据库类型和期望效果。请避免只写“支持 X”。
10+
Describe the use case, database type, and desired outcome; avoid requests that only say “support X”.
1011
PanDB 版本、运行环境、操作系统和系统架构可在应用内通过“设置 → 关于我们 → 复制支持信息”一键复制。
11-
12+
You can copy the PanDB version, runtime, operating system, and architecture in the app via “Settings → About → Copy support information”.
1213
- type: input
1314
id: database
1415
attributes:
15-
label: 数据库类型和版本
16-
description: 如果是通用功能,请填写“通用”。如果只影响特定数据源,请注明数据库类型、版本或发行版。
17-
placeholder: "例如:PostgreSQL 16.2 / MySQL 8.0 / Redis 7.2 / 通用"
18-
validations:
19-
required: true
20-
16+
label: 数据库类型和版本 / Database type and version
17+
description: 通用功能请填写“通用”;特定数据源请注明类型和版本。 / Enter “通用” for general features; otherwise specify the data source and version.
18+
placeholder: "例如:PostgreSQL 16.2 / MySQL 8.0 / Redis 7.2 / 通用 · General"
19+
validations: {required: true}
2120
- type: textarea
2221
id: support-info
2322
attributes:
24-
label: 支持信息
25-
description: 打开 PanDB 的“设置 → 关于我们”,点击“复制支持信息”,然后粘贴到这里。如无法打开应用,请说明原因。
23+
label: 支持信息 / Support information
24+
description: 粘贴应用中的支持信息。 / Paste the support information copied from the app.
2625
placeholder: |
27-
PanDB 版本:v0.5.52
28-
运行环境:桌面端
29-
操作系统:macOS 26.4
30-
系统架构:aarch64
31-
validations:
32-
required: true
33-
26+
PanDB 版本 / Version: v0.5.52
27+
运行环境 / Runtime: Desktop
28+
操作系统 / OS: macOS 26.4
29+
系统架构 / Architecture: aarch64
30+
validations: {required: true}
3431
- type: textarea
3532
id: problem
3633
attributes:
37-
label: 当前痛点
38-
description: 现在做这件事有什么不方便?
39-
placeholder: "例如:每次查询后都要手动复制结果再转成 Markdown。"
40-
validations:
41-
required: true
42-
34+
label: 当前痛点 / Current pain point
35+
description: 现在做这件事有什么不方便? / What is inconvenient about the current workflow?
36+
placeholder: "例如:每次查询后都要手动复制结果再转成 Markdown。 / Example: I must manually copy query results and convert them to Markdown."
37+
validations: {required: true}
4338
- type: textarea
4439
id: proposal
4540
attributes:
46-
label: 期望方案
47-
description: 希望怎么支持?
48-
placeholder: "例如:在查询结果右上角增加导出 Markdown 按钮。"
49-
validations:
50-
required: true
51-
41+
label: 期望方案 / Proposed solution
42+
description: 希望怎么支持? / How would you like this to work?
43+
placeholder: "例如:在查询结果右上角增加导出 Markdown 按钮。 / Example: Add an Export to Markdown button."
44+
validations: {required: true}
5245
- type: dropdown
5346
id: priority
5447
attributes:
55-
label: 优先级(是否紧急)
56-
description: 紧急 = 希望下个版本优先做。维护者可根据实际情况调整。
48+
label: 优先级(是否紧急) / Priority (urgency)
49+
description: 紧急 = 希望下个版本优先做;维护者可调整。 / Urgent means you hope for the next release; maintainers may adjust it.
5750
options:
58-
- "🔴 P0 紧急 · 下个版本必须做"
59-
- "🟠 P1 重要 · 尽快处理"
60-
- "🟡 P2 普通 · 按排期处理"
61-
- "🟢 P3 低优 · 有空再做"
62-
validations:
63-
required: true
64-
51+
- "🔴 P0 紧急 · 下个版本必须做 / Urgent · Must do next release"
52+
- "🟠 P1 重要 · 尽快处理 / Important · Do soon"
53+
- "🟡 P2 普通 · 按排期处理 / Normal · Schedule as appropriate"
54+
- "🟢 P3 低优 · 有空再做 / Low · Do when possible"
55+
validations: {required: true}
6556
- type: textarea
6657
id: extra
6758
attributes:
68-
label: 补充信息
69-
description: 参考截图、替代方案、特殊环境等。
59+
label: 补充信息 / Additional information
60+
description: 参考截图、替代方案、特殊环境等。 / Screenshots, alternatives, or special environments.

‎.github/ISSUE_TEMPLATE/question.yml‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ body:
66
- type: input
77
id: database
88
attributes:
9-
label: 数据库类型和版本
10-
description: 如果问题与数据库无关,请填写“无关”。否则请注明数据库类型、版本或发行版。
9+
label: 数据库类型和版本 / Database type and version
10+
description: 如果问题与数据库无关,请填写“无关”。否则请注明数据库类型、版本或发行版。 / Enter “无关” if unrelated to a database; otherwise specify the type, version, or distribution.
11+
# Enter “无关” if unrelated to a database; otherwise specify the type, version, or distribution.
1112
placeholder: "例如:PostgreSQL 16.2 / MySQL 8.0 / Redis 7.2 / 无关"
1213
validations:
1314
required: true
1415

1516
- type: textarea
1617
id: support-info
1718
attributes:
18-
label: 支持信息
19-
description: 打开 PanDB 的“设置 → 关于我们”,点击“复制支持信息”,然后粘贴到这里。如无法打开应用,请说明原因。
19+
label: 支持信息 / Support information
20+
description: 打开 PanDB 的“设置 → 关于我们”,点击“复制支持信息 / Support information”,然后粘贴到这里。如无法打开应用,请说明原因。
2021
placeholder: |
2122
PanDB 版本:v0.5.52
2223
运行环境:桌面端
@@ -28,17 +29,19 @@ body:
2829
- type: textarea
2930
id: goal
3031
attributes:
31-
label: 描述
32-
description: 你想完成什么?已经尝试了什么?
32+
label: 描述 / Description
33+
description: 你想完成什么?已经尝试了什么? / What are you trying to accomplish, and what have you already tried?
34+
# What are you trying to accomplish, and what have you already tried?
3335
placeholder: "例如:我想通过 SSH 隧道连接内网 PostgreSQL,已确认本机 psql 可以连接,但 PanDB 中测试连接提示..."
3436
validations:
3537
required: true
3638

3739
- type: textarea
3840
id: context
3941
attributes:
40-
label: 环境信息
41-
description: 连接方式、特殊环境、已尝试的排查方式等。
42+
label: 环境信息 / Environment
43+
description: 连接方式、特殊环境、已尝试的排查方式等。 / Connection method, special environment, and troubleshooting already attempted.
44+
# Connection method, special environment, and troubleshooting already attempted.
4245
placeholder: |
4346
连接方式:
4447
补充环境:

0 commit comments

Comments
 (0)