Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>Quarry Database ClientNew to Visual Studio Code? Get it now.
Quarry Database Client

Quarry Database Client

quarry-dev

|
1 install
| (0) | Free
A fast database client for VS Code, powered by a Rust core.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Quarry

Quarry is a database client for VS Code. A Rust core (dbcored) runs SQLite, PostgreSQL, and MySQL/MariaDB queries in a separate process.

Open Quarry from the VS Code Activity Bar and choose Add Connection… to open the GUI Connection Editor for PostgreSQL, MySQL/MariaDB, or SQLite (with connection URI paste, inline Test Connection, TLS/SSH settings, and explorer groups, filtering, duplication, and non-secret JSON profile export/import). Expand a connection to browse its databases, schemas, tables, and columns. The tree opens a separate metadata connection on first expansion.

Network profiles default to verify-full for remote hosts and prefer for loopback. The tree shows the configured TLS policy. Passwords are stored in VS Code SecretStorage and never sent back into webview state. Use DB Client: Test Connection… (or the Connection Editor's inline Test button) to verify connectivity without opening a session.

Click a table or view to open a multi-tab Table Data View in the editor area with visual filter chips, raw WHERE, column header sorting, a collapsible Cell Inspector, and PK-safe inline data editing with SQL preview and transactional rollback. Use Create Table…, Design / Alter Table…, and View DDL to inspect and modify schema visually with dialect-aware DDL previews.

The Export Result… workspace exports finished results directly from Rust as CSV (custom delimiter/header/quoting), JSON / NDJSON, or batched SQL INSERT statements. Import Data (CSV / JSON)… streams previewed and column-mapped rows in transactional batches under the async job runtime. Backup Database… and Restore Database… provide online SQLite backups and PostgreSQL pg_dump / pg_restore archives with cancellable progress notifications.

DB Client: Open Query History… and Open Saved Queries… provide a GUI workspace to search and filter recent executions (up to 500 per connection, 2,000 total), inspect full SQL and timings, pin reusable queries, and open or run them in one click. Use DB Client: Clear Query History to remove saved history.

Use it

  1. Choose New Query on a connection to open a SQL editor bound to it. You can also open a .sql file and choose a connection the first time you run it.
  2. To inspect a table or view, choose Browse Rows on its tree item. Quarry opens a SQL editor with the generated preview query and shows up to 200 rows in Results.
  3. To run SQL from the editor, use Run Statement / Selection in the editor toolbar or press Ctrl+Enter (Cmd+Enter on macOS). A non-empty selection runs exactly as selected, including scripts.

The Quarry panel fetches rows as you scroll. Each result set has its own tab. The Messages tab shows affected rows, timing, notices, and errors. NULL appears dimmed. Select a cell and use Inspect cell to open its value in a separate editor. Click Run above a statement to execute it. The status bar shows the active connection and the elapsed time of a running query. Click the spinner or the panel’s Cancel button to stop that query.

If the core crashes or stops answering, Quarry restarts it and offers to reconnect. It never re-runs SQL on its own.

Commands

Command What it does
DB Client: Add Connection… Adds a PostgreSQL, MySQL/MariaDB, or SQLite connection
DB Client: Edit Connection… Edits a saved connection profile
DB Client: Delete Connection… Deletes a saved connection and removes its stored password
DB Client: Test Connection… Tests a saved connection without opening a query editor
DB Client: Disconnect Closes the active session for a saved connection
DB Client: Open SQLite Database… Opens a SQLite file and binds the current SQL editor to it
DB Client: New Query Opens a new SQL editor bound to a saved connection
DB Client: Select Connection for Editor… Binds or switches the connection for the active SQL editor
DB Client: Run Statement / Selection Runs the selection, or the statement under the cursor
DB Client: Run File Runs every statement in the active SQL editor
DB Client: Cancel Query Cancels the running query
DB Client: Export Result… Opens Export Options to stream results as CSV, JSON/NDJSON, or SQL
DB Client: Import Data (CSV / JSON)… Previews, maps, and streams CSV or JSON rows into a table
DB Client: Backup Database… Runs an online SQLite backup or PostgreSQL pg_dump archive
DB Client: Restore Database… Restores a PostgreSQL custom-format archive with confirmation
DB Client: Open Query History… Opens the Query History & Saved Queries workspace
DB Client: Open Saved Queries… Opens pinned and saved reusable queries
DB Client: Clear Query History Clears saved query history
DB Client: Restart Core Restarts the core process; sessions must reconnect

Settings

Setting Default Description
dbclient.core.path "" Absolute path to a development dbcored binary. Machine-scoped.
dbclient.core.logLevel info Core log level (error to trace), shown in the DB Client: Core output channel
dbclient.results.pageSize 200 Rows fetched per grid request (25 to 2,000)
dbclient.results.maxRows 1000000 Maximum rows stored per result before truncation. Machine-scoped.
dbclient.results.maxMemoryMB 256 Core memory budget (MiB) before spilling chunks to disk. Machine-scoped.

Build the Linux x64 VSIX

Run these commands from the repository root on Linux x64 with the pinned Rust, Node, and pnpm versions.

cd extension
pnpm install --frozen-lockfile
node scripts/package.mjs --target linux-x64

The script prints the path to the VSIX. Install it in VS Code with Extensions: Install from VSIX…. The VSIX includes dbcored and can run offline.

To install the VSIX in a temporary VS Code profile and test it with a disposable SQLite database, run this from extension/ on Linux.

xvfb-run -a node scripts/smoke-vsix.mjs quarry-linux-x64-*.vsix

On a Linux desktop you can omit xvfb-run -a. The test downloads VS Code 1.95.3, runs SQL from the editor, checks the rows in the webview, and verifies that restarting the sidecar leaves the database unchanged.

Privacy

The core logs to the DB Client: Core output channel. It never logs SQL text, parameter values, or credentials.

Production safety and transactions

Set a connection's environment and access mode in DB Client: Edit Connection. The tree and status bar show its environment. By default, Quarry asks for confirmation before running DROP, TRUNCATE, ALTER, and UPDATE or DELETE without a WHERE on production profiles. Set dbclient.confirmDestructive to always to prompt for all profiles or never to disable the prompt. Legacy profiles display as dev until you assign an environment. Quarry also prompts if the selected SQL exceeds the size it can classify within the execution request.

Read-only profiles open SQLite files read-only and set the transaction default to read-only on PostgreSQL, MySQL, and MariaDB. On network databases, use a database role with read-only permissions when you need a restriction that SQL cannot change.

Use Begin beside the active connection in the status bar to enter manual transaction mode. Commit and Rollback end the mode and return to autocommit. Disconnecting through Quarry prompts before dropping an open manual transaction. Restarting the core prompts before rolling back any open transactions. Use transactional tables on MySQL and MariaDB. Quarry rejects MySQL and MariaDB DDL in manual mode because the server can implicitly commit it. If the database ends a manual transaction, use Rollback to clear the mode before running more SQL. Use the transaction controls for transaction statements. End manual mode before running SQL that Quarry cannot classify.

SSH tunnels

Select SSH tunnel when adding or editing a PostgreSQL, MySQL, or MariaDB connection. Enter the database address as seen from the bastion. Quarry applies the database's TLS policy to that address.

Use a password, a private key on the workspace host, or its SSH agent. Private key passphrases and SSH passwords are stored in VS Code SecretStorage. Agent authentication uses SSH_AUTH_SOCK on Unix and the OpenSSH agent service on Windows. Quarry checks the workspace host's ~/.ssh/known_hosts and stores approved host keys under its workspace-host global storage. Compare the first connection's SHA-256 fingerprint to a trusted copy before approving it. A host key mismatch stops the connection. When a tunnel drops, run a command again to reconnect. Quarry never replays SQL.

SQL completion and hover

Bind the SQL editor with DB Client: Select Connection. Quarry suggests schemas, tables and views after FROM and JOIN, and columns from referenced tables and aliases in the query at the cursor. PostgreSQL resolves unqualified table names using the session's search path and inserts schema-qualified table suggestions. Hover on a column for its type, nullability and foreign-key target where available. The editor also reports unbound connections and syntax it cannot parse. The database remains authoritative for dialect-specific syntax.

Catalog reads use the connection reserved for explorer metadata. The core caches entries for 60 seconds per live profile. Run DB Client: Refresh SQL Completion Schema after changing the schema to clear the cache immediately.

Diagnostics

Run DB Client: Collect Diagnostics to save a JSON file containing versions, platform, selected settings, and up to 1,000 redacted core log lines. The file excludes SQL, connection profiles, credentials, database values, and local paths.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft