I Built a Database Explorer That Can't Ruin Your Friday
Description and use
DBAdminer is a lightweight, read‑only database explorer that starts in 30 seconds, can be embedded in Go projects, and runs in Docker without external drivers.
Problem
Developers often connect to production databases with a terminal and a connection string, risking accidental writes and data loss.
Outcome
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.
Workflow
- 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.
Evidence
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
- Record date: 2026-11-04T05:28:46.549Z