Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>RunQLNew to Visual Studio Code? Get it now.
RunQL

RunQL

RunQL - DVCodeLabs

| (0) | Free
SQL workflows, connections, and ERD tooling in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RunQL

Tests Version License: MIT VS Code

SQL workflows, connections, and ERD tooling in VS Code.

Project Overview

RunQL keeps SQL authoring, execution, schema introspection, and ERD visualization in one workspace flow.

  • Run SQL with a dedicated results panel
  • Manage and introspect connections (DuckDB, Postgres, MySQL)
  • Export query/table results as CSV
  • Generate ERD artifacts as JSON you can commit
  • Optionally generate docs/comments with AI providers you control

RunQL is offline-first by default. External DB connections and hosted AI providers require network access when used.

Key Features

SQL Execution + Results UI

  • Run active SQL with a keybinding (Shift+Cmd+R on macOS in SQL editors)
  • View tabular results in the RunQL: Results panel
  • Export CSV and trigger chart generation hooks

Connections + Introspection

  • Add/test/select connections and introspect schemas
  • Persist schema snapshots as JSON in RunQL/schemas/
  • Use introspection for autocomplete and ERD generation

ERD

  • Generate ERDs for active connections or specific schemas
  • Save ERD artifacts under RunQL/system/erd/*.erd.json

Optional AI Integration

  • Generate companion Markdown docs and inline SQL comments
  • Use VS Code LM API, OpenAI, Anthropic, Azure OpenAI, Ollama, or OpenAI-compatible endpoints
  • Keep AI optional; extension works without it

Installation

VS Code Marketplace

  • Search for RunQL in the Extensions view and install.

CLI (after Marketplace publish)

code --install-extension runql.runql

Manual VSIX

  • Build a platform-specific package and install via:
npm ci
npx vsce package --target darwin-arm64  # use your platform
code --install-extension runql-darwin-arm64-0.0.1.vsix

Quick Start

1. Open a workspace folder

RunQL initializes a RunQL/ structure for queries, schemas, and system artifacts.

2. Run your first SQL query

  • Create/open a .sql file
  • Select a connection
  • Run query with Shift+Cmd+R

Run SQL and inspect results

3. Introspect and explore schema

  • Run RunQL: Refresh All Schemas
  • Expand the Explorer tree
  • Use RunQL: View ERD (Selected Schema) when needed

Configuration Guide

Common settings (VS Code settings key prefix: runql.):

  • runql.query.maxRowsLimit: hard result limit for SELECT queries (0 disables limit)
  • runql.ai.provider: none|vscode|openai|anthropic|azureOpenAI|ollama|openaiCompatible
  • runql.ai.model: provider-specific model selection
  • runql.ai.endpoint: custom endpoint for local/self-hosted providers
  • runql.ai.sendSchemaContext: include schema context in AI prompts
  • runql.format.enabled: enable SQL formatting

Full reference: docs/configuration.md

Documentation

  • docs/getting-started.md
  • docs/features.md
  • docs/erd-guide.md
  • docs/database-adapters.md
  • docs/ai-providers.md
  • docs/troubleshooting.md
  • docs/security.md

Contributing

Contributions are welcome. Please read:

  • CONTRIBUTING.md
  • CODE_OF_CONDUCT.md
  • SECURITY.md

License

This project is licensed under the MIT License. See LICENSE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft