Why I built a database client that also manages SSH hosts

A database connection is rarely just a hostname. In my own workflow it often comes with an environment, a group of related services, and an SSH host or tunnel. I built DBDock to put those pieces in one desktop app for macOS.

DBDock SQL editor and results using simulated demo data

DBDock supports MySQL, PostgreSQL, SQLite, Redis, MongoDB, and Cloudflare D1. The experience differs by engine: the SQL databases get a table browser and SQL editor, Redis gets a key browser and command console, and MongoDB has a collection browser and a shell for supported operations.

Connections with context

Connections can be organized in nested groups and tagged local, development, test, staging, or production. Production connections are visually marked, and SQL protection can request confirmation for statements that may change data. There’s also a browse-only setting. These are guardrails, not a substitute for database permissions or backups.

The SQL editor includes completion, query history within the current session, optional Vim mode, and visual execution plans. Editing table data offers a SQL preview before committing. Supported operations and behavior vary by database; the project’s README documents the differences.

SSH belongs in the workflow too

DBDock SSH host management with fictional hosts

DBDock can connect through an SSH tunnel and can also manage Host entries in ~/.ssh/config: list, add, edit, delete, and test logins. It makes a backup before editing the config, and only edits the supported directives in the selected Host block. Existing comments and other directives are preserved.

One limitation worth calling out: ProxyJump can be edited in the config, but DBDock’s database tunnels do not follow it yet. Host keys must already be trusted through OpenSSH; unknown or changed keys are refused.

Current state

DBDock is open source. The current downloadable build is for Apple Silicon and macOS 11 or later. It is ad hoc signed and may require first-launch confirmation in macOS Privacy & Security. Connection credentials are kept in macOS Keychain; exports have separate options for including passwords.

I’m curious how other developers organize connections across projects and environments. What makes a database client feel safe and fast to use, especially when production and development live side by side?

Leave a Reply