DB

dbtool future desktop

Operator Workspace Foundation

面向数据库操作者的安静型工作台原型,聚焦 connect → inspect → query → export。

Active Target pg-prod-readonly
Workspace Production Read Audit

只读 PostgreSQL 连接,聚焦近 7 天订单审计。

Selection public.orders

Schema browser 与 inspector 指向同一对象。

Last Run Success · 50 rows

182 ms,结果可导出。

Export /tmp/orders-last-7-days.csv

当前展示默认导出目标,不执行真实写盘。

Guided Review

MVP Workflow

当前聚焦 Connect:先确认活动目标、环境标签和连接摘要清晰可见。

PostgreSQL
Target pg-prod-readonly
Mode Read-only
Selection public.orders
Last validated 2 minutes ago
1 2 3 4 5 6

Execution

Last run succeeded

50 rows returned in 182 ms. Export is available.

50 rows · sorted by created_at desc 结果区保留紧邻执行反馈的上下文,不让表格单独承担状态信息。

Export Status

Ready to export the current result set

`/tmp/orders-last-7-days.csv` is available as the default target.

No blocking problem

When a query fails, this area should show the error summary, SQL fragment, and next action.

Contract Snapshot

Query success envelope preview

展示当前界面状态如何映射到共享结构化契约;`running` 仍属于前端暂态。

Ready for review. Use C / I / Q / E to move through the workflow, 1–5 to preview states, `R` to simulate run, `T` to switch theme, `/` to focus search.
C Connect I Inspect Q Query E Export 1 Running 2 Success 3 Empty 4 Error 5 Exported R Run T Theme / Search ⌘/Ctrl+K Actions