<a href="https://github.com/damms005/devdb-vscode/actions"><img alt="Tests passing" src="https://img.shields.io/github/actions/workflow/status/damms005/devdb-vscode/deploy.yml?style=for-the-badge&logo=github&label=TESTS"></a>
<a href="https://marketplace.visualstudio.com/items?itemName=damms005.devdb"><img alt="VS Code Marketplace Installs" src="https://img.shields.io/visual-studio-marketplace/i/damms005.devdb?style=for-the-badge&cacheSeconds=10800"></a>
<a href="https://marketplace.visualstudio.com/items?itemName=damms005.devdb&ssr=false#review-details"><img alt="VS Code Marketplace Rating" src="https://img.shields.io/visual-studio-marketplace/r/damms005.devdb?style=for-the-badge&cacheSeconds=10800"></a>
<a href="https://github.com/sponsors/damms005"><img alt="Sponsor" src="https://img.shields.io/badge/Sponsor-%E2%9D%A4-%23db61a2.svg?&logo=github&logoColor=white&labelColor=181717&style=for-the-badge"></a>
<a href="https://marketplace.visualstudio.com/items?itemName=damms005.devdb">VS Code Marketplace page</a>
⋅
<a href="https://open-vsx.org/extension/damms005/devdb">Open VSX Registry page</a>
A lightweight VS Code extension that auto-loads your database and provides affordances from your database to aid development and debugging.
Built with 💖 for developers.
|
|
|
|
|
We are genuinely grateful to the following sponsors of DevDb:
MCP Server: Provide your database information to AI-powered IDEs and MCP clients like Cursor, Windsurf, etc.
Quick table open command: Press Cmd+K Cmd+G (Mac) or Ctrl+K Ctrl+G (Windows/Linux) to quickly open any table.
Zero-config Database Auto-discovery: Automatically discover and load your database ― no manual configuration required. Supports environments like DDEV, Adonis, Laravel, containerized setups (Laravel Sail), etc.
Database affordances for Local Development: Because of a deep understanding of your database schema, DevDb is able to provide affordances that aid development and debugging, such as one-click generation of Eloquent Model factories, etc.
Powerful IDE Integrations: DevDb nicely integrates your database with your IDE to provide very useful IDE-powered features like Context Menu & CodeLens Integrations directly in your editor, providing features like opening tables from code, invoking SQL query explainer when working on query optimization tasks, etc.
Rich Database Client with Intuitive UX: Dedicated database client view with one-click data browsing, inline editing, deletion, one-click reconnection, etc. Easily modify, set values to null, preview complex JSON data, all within a responsive interface.
Data Export: Export table data as well-formatted JSON or SQL INSERT statements copied to your clipboard or saved to file.
Comprehensive Multi-database Support: Seamlessly interface with SQLite, MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, and MongoDB. Connect to remote databases securely via SSH tunnels.
Intuitive Configuration System: In environments where automatic zero-config is unavailable, DevDb provides quick snippets that produce well-formatted templates, as well as JSON Schema validation IntelliSense, which altogether makes creating configuration file for connecting to your database an awesome experience.
Integrated Framework & Tool Support: Tailored support for popular frameworks and tools including Laravel, DDEV, Ruby on Rails, and Adonis ensures a seamless development experience. Need special feature(s) for your environment? We're listening!.
Cross-platform Compatibility: Engineered to perform consistently on Linux, macOS, and Windows, ensuring maximum flexibility as you can carry on your work across all these platforms.

Ubuntu 20.04 (including equivalent distors) and below are not supported because they have reached EOL and no longer supported runners in GitHub Actions. See https://github.com/actions/runner-images/issues/11101
[!NOTE] DevDb also provides several Language and Framework Integrations
Cmd + K + D to toggle the view panelCmd + K + G to go to a tableCmd + Click table name in the sidebar to open the table in the current tabCmd + Click on a database value to edit itCmd + Z to undo changes, Cmd + Y to redo changes, and Cmd + S to save changesSet null button on a database value to set the value to null
Currently supported databases:
DevDb can automatically discover and load your database using connection details from your VS Code workspace (zero-config mode). When this zero-config auto-discovery isn't available, a configuration file option is provided.
No configuration file is needed when the workspace root contains any of the following:
supabase/config.toml)If zero-config support isn't available for your environment, create a .devdbrc file in your project root with your database connection details.
[!WARNING] Exclude the
.devdbrcconfig file from version control by adding it to.gitignore. This protects sensitive information and allows team members to use different database configurations.
The configuration file should contain a single array of database connection objects. DevDb provides rich editing features for .devdbrc:
typedevdb mysql: MySQL configurationdevdb mariadb: MariaDB configurationdevdb postgres: PostgreSQL configurationdevdb sqlite: SQLite configurationdevdb mssql: Microsoft SQL Server configuration[
{
"name": "My test MySQL database",
"type": "mysql",
"host": "127.0.0.1",
"port": "3306",
"username": "root",
"password": "12345",
"database": "test" // <-- the database to show in VS Code DevDb view
},
{
"type": "sqlite",
"path": "/path/to/database.sqlite"
},
{
"name": "My MSSQL database",
"type": "mssql",
"host": "localhost",
"port": "1433",
"username": "sa",
"password": "YourPassword123",
"database": "master",
"options": {
"trustServerCertificate": true
}
}
]
With DevDb Pro License, you can connect to remote databases and NoSQL databases directly from your editor.
Connects to a remote database by forwarding traffic through an SSH tunnel. Authentication supports:
~/.ssh/id_rsa or ~/.ssh/id_ed25519). If the key is passphrase-protected, you will be prompted for it on first connection.[!NOTE] The remote server's SSH daemon must have
AllowTcpForwardingset toyes(orlocal) in/etc/ssh/sshd_config. Without this, the SSH tunnel will fail to establish. The remote database host/port default to127.0.0.1:3306(MySQL) or127.0.0.1:5432(PostgreSQL) — change these if your database binds to a different address or port on the remote machine.
Connects via either individual fields (host, port, username, database) or a full connection string URI (mongodb://... or mongodb+srv://...). When using authentication, provide credentials and set the authSource (defaults to admin).
Connect to your Supabase cloud project using the Direct Connection type. Use the connection details from your Supabase dashboard (Settings > Database):
db.<project-ref>.supabase.co)5432postgrespostgresAllowTcpForwarding must be yes or local in /etc/ssh/sshd_config on the remote server600 (e.g. chmod 600 ~/.ssh/id_rsa)127.0.0.1:3306), not your local machine/var/log/auth.log (Debian/Ubuntu) or /var/log/secure (RHEL/CentOS)authSource must match the database where the user was created (typically admin)Open any database table in DevDb by right-clicking its name/model/entity from the editor in any framework/programming language.
Example from a Node.js app

DevDb provides Code Lens features for:

[!NOTE] Factory Generation is also available via the context menu
The Query Explainer integrates with MySQL Visual Explain to optimize SQL queries by analyzing MySQL's query execution plan. Usage:
DB facade)$ claude mcp add devdb-vscode \
-- python -m otcore.mcp_server <graph>