Open files in VS Code and Cursor / Tables and data

Use a PostgreSQL client in VS Code

VS Code cannot connect to a database on its own. Install the free Postgres & MySQL Query Client by Zovo, click Add Connection in its view and paste a URL such as postgres://me@localhost:5432/shop. Then press Ctrl+Enter (Cmd+Enter on macOS) in a .sql file to run a query. Connections are unlimited, editing rows is free, and there is no subscription.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)JetBrains IDEs

Free, MIT license. Extension ID zovo.zovo-sql-client, version 0.2.4. Needs VS Code 1.90.0 or newer.

Also free from Zovo: SQLite Editor & Viewer, VS Code Marketplace · Open VSX (Cursor, Windsurf).

A PostgreSQL query on the Pagila sample database in VS Code: the SQL file on the left, 1,000 result rows in the grid on the right, and the Database Explorer with tables, columns and row counts
A PostgreSQL query on the Pagila sample database in VS Code: the SQL file on the left, 1,000 result rows in the grid on the right, and the Database Explorer with tables, columns and row counts.

Steps in VS Code

  1. Install Postgres & MySQL Query Client from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.zovo-sql-client.
  2. Open the SQL Client view in the activity bar and click Add Connection.
  3. Paste a postgres:// URL, or fill in host, port, user, database and SSL mode. Click Test connection, then Save. The password goes to VS Code's secret storage.
  4. Click New Query on the connection, type SQL and press Ctrl+Enter to run the statement at the cursor. Ctrl+Alt+Enter runs the whole file.
  5. Click a table to browse it. Double-click a cell to edit it. Review shows the exact UPDATE, and it runs in one transaction.

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.zovo-sql-client and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/zovo-sql-client.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What Postgres & MySQL Query Client handles

What it does not do

In JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, CLion and others)

Other options

Install counts and Open VSX status were checked on 9 November 2026. Descriptions in quotes are the extensions' own.

Questions

Is there a free PostgreSQL client for VS Code?

Yes. Postgres & MySQL Query Client is free, with unlimited connections, row editing and export. The PostgreSQL extension from Microsoft and SQLTools are free too.

Does it keep a connection busy while I am idle?

No. It runs no keep-alive or polling query. In the release test the PostgreSQL log showed 0 statements in 60 idle seconds while connections were open.

Where is my password stored?

In VS Code's secret storage, which uses the system keychain. Never in settings or logs.

More about Postgres & MySQL Query Client

Read the Postgres & MySQL Query Client page for every feature and setting, or the source code on GitHub.

Zovo Pro and support

Zovo Pro: USD 19 once, every Zovo viewer. It turns on the Pro tools in this extension and in the other Zovo extensions you use. The free features stay free.

After a card payment your license key shows on the next page. Paste it with the command "Zovo Pro: Enter a key".

You can also support the work with no Pro:

Need your format supported?

Open a format request with a sample file, and I reply there whether it can be done. For USD 299 once, through this GitHub Sponsors tier, I add your file format or a missing feature to this extension, with tests, within 7 days.