DB Desk
Browse, edit, search, export and import your databases without leaving the editor. One sidebar and one set of pages for PostgreSQL, MySQL / MariaDB, SQL Server, SQLite, MongoDB and Redis.
| Database |
Pages |
| PostgreSQL (also Aurora / RDS / Supabase / Neon / CockroachDB) |
server, database, table |
| MySQL / MariaDB (also Aurora / PlanetScale / TiDB) |
server, database, table |
| SQL Server (also Azure SQL) |
server, database, table |
SQLite (a .db / .sqlite file) |
database, table |
MongoDB (also Atlas, via mongodb+srv://) |
server, database, collection |
| Redis (also Valkey / KeyDB) |
server, database (key browser) |
Getting started
- Click the DB Desk icon in the activity bar, then Add connection.
- Pick the database type, fill in the form, press Test connection, then Save. The result of the test appears right above the buttons, and the form stays open so you can adjust and save again.
- Click the connection for its server page, or expand it and click a database, table, collection or key.
Moving to another machine? Use Export Connections to File and Import Connections from File (Servers view toolbar, or the Connections table) to take all saved connections with you.
Features
SQL databases (PostgreSQL, MySQL, SQL Server, SQLite)
- Connections: add, edit, delete and test connections. Passwords are stored in the editor's secret storage, and a Show / Hide button lets you check what you typed. Optional read-only mode for production (enforced by the database session where the database supports it, and by the extension).
- Sidebar tree: server › database › (schema: PostgreSQL / SQL Server) › tables and views. A SQLite file shows its tables directly.
- Server page (click a connection): Databases (size, create, drop, open), SQL, Status, Processes (kill), User accounts (privileges), Variables, plus Extensions (PostgreSQL), Charsets / Engines / Plugins (MySQL) or Collations (SQL Server).
- Browse: sort by clicking a column, search (one column or all), paging, edit / delete rows, multi-row delete, the SQL that ran with Edit / Explain. Tables without a primary key are view-only.
- Search (table): query by example: an operator and value per column (=, <, LIKE, IN, BETWEEN, IS NULL, …), order and page size.
- Insert / Edit: one form per row, with NULL checkboxes and defaults.
- Structure: columns (Change: rename, type, NULL, default), primary / unique / index per column, distinct values, indexes, relations (add / drop foreign keys), add / drop column. In SQLite, changes ALTER TABLE can't make are done with a table rebuild (SQLite's documented procedure), all in one transaction.
- Triggers: per table and per database; edit (opens DROP + CREATE in the SQL tab), drop, new from a template.
- SQL: run a query or a selection (Ctrl/Cmd + Enter), multiple result sets, cancel a running query, run a
.sql file. SQL Server scripts may use GO batch separators.
- Database page (click a database): every table with rows and size, Browse / Structure / Insert / Empty / Drop per table, "With selected" actions, and a create-table editor.
- Database Search: find text in every column of the chosen tables, then browse the matching rows.
- Routines (PostgreSQL, MySQL, SQL Server) and Events (MySQL): list, view / edit the definition, run or call, drop, new from a template.
- Whole-database export: Quick (everything, SQL) or Custom (pick tables; SQL with structure / data / DROP options, or one CSV/JSON file per table). SQL dumps include identity / auto-increment counters, indexes, foreign keys (added after the data), views and (SQLite) triggers, and import into any database of the same kind.
- Whole-database import: run a
.sql file (DB Desk, mysqldump, pg_dump --inserts, SSMS scripts). PostgreSQL imports are one transaction.
- Table export / import: CSV, JSON, or SQL (structure and/or data). CSV/JSON imports match columns by name and are all-or-nothing.
- Operations: create / drop database (typed confirmation), create / rename / copy (with or without data) / empty / drop table, table maintenance (VACUUM / ANALYZE / REINDEX, CHECK / OPTIMIZE, UPDATE STATISTICS / index rebuild, integrity check), add / drop column, add / drop index, copy a row.
MongoDB
- Server page: databases with size, Status, running operations (kill), users.
- Database page: collections with document count, size and indexes; create / drop collection; Command (
db.runCommand); drop database.
- Collection page: Documents as a table or as JSON, with filter / sort / projection and paging; edit, copy and delete documents; Insert (one or many); Indexes (create, unique, drop); Aggregate (pipeline editor with stage snippets); Export / Import (JSON array or one document per line); rename, copy, empty, drop.
- Documents are shown and edited as Extended JSON, so ObjectId, dates, Decimal128 and 64-bit integers keep their type.
Redis
- Server page: databases (db0–db15) with key counts, Status (INFO), clients (kill), Config, Slow log, CLI.
- Database page: key browser (SCAN with pattern and type filter, paging); a value editor for strings (JSON is formatted), hashes, lists, sets, sorted sets and streams; rename, TTL / persist, delete; Add key; CLI with history; Export / Import (readable JSON incl. TTLs); FLUSHDB.
- On read-only connections only commands Redis marks as read-only can run.
Security and privacy
- Passwords are kept in the editor's secret storage (backed by your operating system's keychain). They are never written to settings, so Settings Sync does not copy them.
- No telemetry. DB Desk connects only to the databases you add and sends nothing anywhere else.
- Read-only connections refuse changes, which makes them a good default for production.
- Exported connections: if you choose "Include passwords", the file contains them in plain text. Keep it private and delete it after importing; choose "Without passwords" for anything you share.
- SSL / TLS encrypts the connection but does not verify the server certificate.
Requirements
- VS Code 1.90 or newer on Windows, macOS or Linux. It also runs in editors built on VS Code, such as Cursor and VSCodium.
- Nothing else to install: no native modules, no command-line database tools (only
COPY … FROM stdin and DELIMITER dump files need them, see below).
Known limits
- Imports read the whole file into memory; exports stream.
- SQLite: the whole file is loaded into memory and written back after every change, so very large files (hundreds of MB) are slow. A file changed by another program is re-read automatically.
- PostgreSQL dumps cover tables, views, sequences, identity, enums and extensions; functions, triggers, materialized views and other custom types are not exported.
COPY … FROM stdin (pg_dump's default format) and DELIMITER (mysql client) files need the command-line tools.
- SQL Server: SQL Server Agent jobs are not shown. Read-only connections refuse scripts that write and run everything else in a transaction that is rolled back.
- MongoDB: sharded-cluster admin and Atlas Search are not covered. Imports insert in order; on an error the documents before it stay.
- Redis: cluster mode shows db0 only. Values over 1000 items show the first 1000 (use the CLI for the rest).
- Oracle is not supported.
Trademarks and third-party software
PostgreSQL, MySQL, MariaDB, Microsoft SQL Server, SQLite, MongoDB, Redis and the other product names mentioned here are trademarks of their respective owners. DB Desk is an independent project: it is not affiliated with, endorsed by or sponsored by any of them, and the names are used only to say which databases it works with. All icons and artwork in DB Desk are original.
The open-source packages bundled in the extension and their licences are listed in the file THIRD_PARTY_NOTICES.txt that ships with it.
License
MIT © 2026 Faraz Quazi. The full text is in the LICENSE file.
Author and support
Faraz Quazi · farazify@gmail.com · LinkedIn
Questions, bug reports and ideas are welcome by email.
| |