I Built a Database Explorer That Can't Ruin Your Friday
说明与用途
DBAdminer 是一个轻量级、只读的数据库浏览器,30 秒内启动,可嵌入 Go 项目,支持 Docker 运行,无需外部驱动。
问题
Developers often connect to production databases with a terminal and a connection string, risking accidental writes and data loss.
结果
DBAdminer provides a safe, read‑only database exploration experience that can be launched in 30 seconds, embedded in Go projects, and run in Docker without external drivers or installers.
工作流
- 1. Download the binary from GitHub Releases or pull the Docker image.
- 2. Run
dbadminer --dsn 'postgres://user:[email protected]:5432/app?sslmode=disable'or setDATABASE_URLand executedbadminer. - 3. Open
http://127.0.0.1:8080to explore tables, data, and run SQL queries. - 4. To enable write access, start with
dbadminer --access=fullor setDBADMINER_ACCESS=full. - 5. For embedding, create a
*sql.DB, calldbadminer.New(db, cfg), and serve withex.ListenAndServe(ctx)or mountex.Handler()on an existing server.
证据
DBAdminer: a database explorer that starts in read-only mode
Only one SELECT, WITH, EXPLAIN, VALUES, TABLE, or SHOW per request
Run dbadminer --dsn 'postgres://user:[email protected]:5432/app?sslmode=disable'
If you really need to change things: dbadminer --access=full
- 记录日期: 2026-11-04T05:28:46.549Z