The VS Code SQL editor built for data work with AI
RunQL auto-documents your schemas and queries, it saves ERDs and charts as code, and keeps everything in your workspace — where your AI tools, your team, and your version control can actually use it.
Works with
AI is only as good as the context you give it
Without documented schemas, indexed queries, and structured artifacts in your codebase, your AI tools are guessing — and so is everyone who joins your team.
AI generates wrong SQL without context
Your AI assistant doesn't know your tables, relationships, or what columns actually mean. Without documented schema context, every suggestion is a guess — and you spend more time fixing AI output than writing SQL yourself.
Nobody documents their database
Table descriptions live in someone's head. Column meanings are tribal knowledge. When they leave, the context leaves with them — and your AI tools, new hires, and even you next quarter are all starting from scratch.
Queries, ERDs, and charts aren't treated as code
That perfect JOIN from last month? Gone. ERDs are screenshots in Confluence. Charts are one-time renders. Nothing is indexed, searchable, version-controlled, or stored where AI and teammates can actually find it.
How it works
Connect. Query. Document. Commit.
Connect your database
Add connections from the sidebar explorer. RunQL introspects your schemas to power autocomplete, ERD generation, and AI context.
Write and run SQL
Author .sql files with schema-aware autocomplete. Run
single statements or full scripts with Shift+Cmd+R. View results, edit data, and generate
charts — all in the dedicated panel.
Document everything
Auto-generate schema descriptions, inline SQL comments, and markdown docs with AI. Every query is auto-indexed and searchable by title, tags, SQL, and description.
Commit your artifacts
ERDs, charts, schema snapshots, and documentation all save as
human-readable JSON and Markdown in your RunQL/ folder. Diff them in PRs. Feed them
to AI.
{
"version": "1.0",
"connection": "api-db",
"tables": [
{
"name": "users",
"columns": [
{ "name": "id", "type": "uuid", "pk": true },
{ "name": "email", "type": "varchar" }
]
},
{
"name": "api_keys",
"columns": [
{ "name": "id", "type": "int", "pk": true },
{ "name": "user_id", "type": "uuid", "fk": "users.id" }
]
}
]
}
This file lives in your repo. Diff it. Review it. Ship it.
The SQL editor built for the AI era
Auto-document your database, index every query, and store every artifact as code — so both your team and your AI tools have the context they need.
AI-Powered Documentation
Auto-document every table and column with AI-generated descriptions. Generate inline SQL comments and structured Markdown docs. Schema context is automatically fed to your AI provider so it understands your database — not just generic SQL.
Query Library & Smart Search
Every .sql file is auto-indexed the moment you save it. Search
across title, tags, SQL content, description, and metadata. Detect duplicate queries. Browse full query
history with recall. Organize work into query bundles.
Everything Stored as Code
ERDs, charts, schema snapshots, descriptions, and prompt templates are all
stored as .json and .md files in your workspace. Commit them to Git. Diff them
in PRs. Feed them to AI agents. No proprietary formats.
Interactive ERDs
Auto-generate entity-relationship diagrams from any connection. Drag tables to customize layout. Add custom relationships. Color-coded foreign keys. ERD topology, layout, and relationships all stored as committable JSON.
Charts & Visualization
Create bar, line, pie, doughnut, scatter, and radar charts from any query
result. Customize colors per dataset. AI can recommend chart types. Chart configs are stored as
.chartconfig.json alongside your SQL.
Schema Management
Create new tables with full constraint support (PKs, FKs, unique, check, indexes). Edit columns and data inline. Compare schemas and tables side-by-side across environments. Backup databases with structure and data.
Advanced Results Grid
Sort, filter, and resize columns. Edit rows inline and write changes back to the database. Export results or entire tables to CSV. Virtual scrolling handles large datasets. Per-connection edit and export permissions.
Bring Your Own AI
Choose your provider: GitHub Copilot, OpenAI, Anthropic, Azure OpenAI, Ollama (local), or any OpenAI-compatible endpoint. Customize every prompt template. AI is strictly opt-in — set it to "none" and nothing leaves your machine.
And more
Connect to what you use
Built-in support for popular databases, with an extensible architecture for everything else.
PostgreSQL
Built-inMySQL
Built-inDuckDB
Built-inSnowflake
Add-on ExtensionBuilt to extend
RunQL exposes a public extension API. Third-party VS Code extensions can register new database providers and query adapters — just like the Snowflake connector does. Build support for your database and share it with the community.
Security
Offline-first.
Private by default.
RunQL works without an internet connection.
Need data access governance?
RunQL is also the official client for SecureQL — a database proxy that adds enterprise security controls without changing how you write SQL.
- Per-user API key authentication
- Identifiable audit trail for every query
- Sensitive column tagging and access reporting for PII, PHI, PCI, and other data
- One-click user access revocation
- Admin-controlled data export and editing permissions
SecureQL
Frequently asked questions
runql-snowflake) that
registers itself with RunQL's adapter API. Install it alongside RunQL and Snowflake appears as
a connection type in the explorer. This is the same pattern any community member can use to add support
for other databases.
Better context in. Better SQL out.
Install RunQL from the VS Code Marketplace. Free, open source, and ready in under a minute.