1.6 KiB
1.6 KiB
dbtool-cli-v1 Demo Assets
These assets give backend, frontend, and QA one small shared dataset for PostgreSQL, MySQL, and SQLite.
Current Status
- Demo fixtures, seed scripts, and smoke inputs are staged.
- PostgreSQL、MySQL 和 SQLite driver behavior now exists for
connect,inspect, andquery. exportexecution to CSV / JSON now exists behind the shared query-result model.- Use these files as the shared data baseline for backend, frontend, and QA verification.
Layout
examples/fixtures/— seed SQL per database plus expected assertionsexamples/sql/— happy-path and failure-path query inputsexamples/scripts/— repeatable bootstrap helpers
Intended QA Coverage
connectagainst PostgreSQL, MySQL, SQLiteinspectschemas / tables / columnsqueryfrom inline SQL or file inputexportto CSV / JSON from a known query
MySQL Bootstrap Note
examples/fixtures/mysql/init.sql会显式授予dbtool用户对qa_demo的权限- 这样可避免 demo 容器默认库名与 QA 目标库名不一致时,
dbtool无法访问qa_demo
SQLite Bootstrap Note
examples/scripts/bootstrap-sqlite.sh现支持sqlite3、node:sqlite或python3 sqlite3三种 seed 路径- SQLite demo inspect 语义使用
main作为 schema 名称 - SQLite demo query 目前按单条 statement 执行,多语句输入会明确失败
Known Blocker
The seed data is ready, and PostgreSQL / MySQL / SQLite query and export flows are implemented, but these assets still cannot serve as release evidence until the full smoke path runs in a Docker-capable environment.