Open files in VS Code and Cursor / Tables and data

See an ER diagram of your database in VS Code

VS Code has no ER diagram view of its own. To draw one from a live database, install Postgres & MySQL Query Client by Zovo, add a connection, right-click a schema and pick "ER Diagram (Pro)". It reads the tables, columns, keys and foreign keys and draws them with the links. Drag tables to arrange them and save the diagram as SVG. The client is free; the ER diagram is part of Zovo Pro (USD 19 once) and works 3 times without a key.

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).

The Postgres and MySQL client in VS Code on the Pagila sample database: the Database Explorer with tables, columns and row counts, a SQL file and 1,000 result rows
The Postgres and MySQL client in VS Code on the Pagila sample database: the Database Explorer with tables, columns and row counts, a SQL file and 1,000 result rows.

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. Paste a postgres:// or mysql:// URL or fill in the form, then Save.
  3. Expand the connection to the schema you want.
  4. Right-click the schema and pick "ER Diagram (Pro)", or run it from the Command Palette.
  5. Drag tables to arrange them, then save the diagram as an SVG file for docs or a pull request.

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

Free and Zovo Pro

Free, and staying free: unlimited connections to PostgreSQL, MySQL, MariaDB and SQLite, the Database Explorer, running SQL, the results grid, row edits, Cancel, and export to CSV, JSON or SQL INSERT.

Zovo Pro adds these tools to Postgres & MySQL Query Client. Each one works 3 times on your computer before it asks for a license. Nothing about Pro shows when you open a file: no popup, no countdown, no banner.

Zovo Pro costs USD 19 once. It is not a subscription, and one purchase covers every Zovo VS Code extension. Today it also covers the Pro tools in Hex Viewer and DOCX Viewer, and Pro tools added to other Zovo extensions later.

Two ways to unlock it:

  1. GitHub Sponsors: pick the "$19 one time" tier. Then, in VS Code, click a Pro tool and pick "Unlock with GitHub Sponsors" (or type "GitHub Sponsors" in the Command Palette) and sign in with the same GitHub account. A monthly sponsorship of USD 10 or more that is still running counts too.
  2. PayPal, no GitHub account needed: send USD 19 by PayPal with "Zovo Pro" in the note, then post the transaction ID with the Zovo Pro key form (a public GitHub issue, so post only the ID). The license key goes to the email address of your PayPal account within a day. Click a Pro tool and pick "I have a license key" (or type "license key" in the Command Palette) and paste it. The key is checked on your computer, with no network call.

A team of 5: USD 59 once by PayPal, with "Zovo Pro Team" in the note. Every rule and every Pro tool is on the Zovo Pro page.

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

Can VS Code draw an ER diagram from a database?

Not by itself. You need an extension that connects to the database, such as Postgres & MySQL Query Client, or one that reads your ORM or migration files.

Is the ER diagram free?

It is part of Zovo Pro, USD 19 once, and works 3 times on your computer before it asks. Connecting, querying, editing rows and exporting stay free.

Does it change my database?

No. It only reads the schema. Saving the SVG writes a file on your computer.

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.