talira

SQLTools

Connect to MySQL, PostgreSQL, SQL Server, SQLite and other databases and run queries inside VS Code

open sourceMITfree

A set of VS Code extensions for working with SQL databases from the editor: a connection explorer, a query runner with history and bookmarks, a SQL formatter and a generator for INSERT queries. The core extension talks to each database through a driver extension: official drivers cover MySQL, MariaDB, TiDB, PostgreSQL, CockroachDB, SQL Server and SQLite, and community drivers add others such as ClickHouse, Databricks, Amazon Redshift and Db2. Maintained by Matheus Teixeira and George James Software. MIT licensed.

Problems it solves

  • query my Postgres or MySQL database without leaving VS Code
  • browse database tables and run SQL from my editor
  • format SQL and keep a history of the queries I ran

Features

  • connection explorer
  • query runner with history and bookmarks
  • SQL formatter
  • INSERT query generator
  • pluggable driver architecture with official and community drivers

Limitations

  • Each database needs its own driver extension installed1

Alternatives

The same job

These do what SQLTools does.

  1. Database Client Browse, query and edit MySQL, PostgreSQL, SQLite, Redis and Elasticsearch from VS Code
  2. DBX Lightweight cross-platform database client for 100+ databases, with an AI assistant, MCP server and CLI
  3. DataGrip The JetBrains IDE for relational and NoSQL databases

Compare SQLTools with the top 3