DC QueryStudio

Free Software

FREE

DC QueryStudio

Cross-Platform Database Query Tool with Built-In AI Assistant

A desktop database client for MySQL, PostgreSQL, SQLite, and SQL Server. It includes an AI assistant that understands your actual schema, so it writes queries using your real table names and columns. You can also generate ERD diagrams, edit data inline, and export results in multiple formats. Free, offline, no account needed.

Version 0.2.0 March 6, 2026 6 downloads
DC QueryStudio screenshot
Full interface: SQL editor, results grid, AI assistant, and object browser

Most database tools are either expensive and bloated, or too simple to be useful. You end up jumping between a query editor, a browser for schema docs, ChatGPT for SQL help, and a spreadsheet for exports. It should all be in one place.

DC QueryStudio puts a SQL editor, AI assistant, ERD viewer, data editor, and export tool into one desktop app. The AI knows your actual database schema, not just generic SQL, so it writes queries that work on the first try.

Download DC QueryStudio

Select your platform and accept the terms to download.

4 platforms available. Select your platform above.

Interface Overview

Here's what each part of the interface does.

DC QueryStudio interface with numbered annotations

Sidebar

  • 1 Current Active Connection
  • 2 Connection Panel
  • 3 Add New Connection
  • 31 Current Connection Indicator
  • 35 Query History Tab
  • 36 Favorites Tab
  • 32 SQL Query History
  • 33 Filter History by Connection
  • 34 Search Query History

SQL Editor

  • 4 Query Tabs
  • 5 Current Active Tab
  • 9 Connection Used by Tab
  • 10 Selected Database
  • 11 Execute SQL Query
  • 6 Save to Favorites (Cmd+S)
  • 7 Explain Query (AI)
  • 8 Optimize Query (AI)

Results

  • 12 Results Tab
  • 13 Messages Tab
  • 14 Result Grid
  • 15 Export Result Grid Data

AI Assistant

  • 16 AI Assistant Panel
  • 22 Select LLM Model
  • 17 Embedding Indexing Status (Green = Ready)
  • 18 Toggle Embedding Panel
  • 19 Toggle AI Chat History
  • 20 Start New AI Chat
  • 21 Close AI Assistant Panel
  • 23 Run Generated SQL Query
  • 24 Select AI Task (Generate / Explain / Optimize)
  • 25 AI Chat Input Box
  • 26 Attach File to AI Chat

Status Bar

  • 27 Toggle Light/Dark Theme
  • 28 Open About Dialog
  • 29 Open Settings
  • 30 Open AI Assistant Panel
Multi-Database Support
🟠

MySQL

Full MySQL support with INFORMATION_SCHEMA introspection, SSL connections, and SSH tunneling for secure remote access.

🔵

PostgreSQL

PostgreSQL support with pg_catalog queries, per-database connection pools, and schema-level object browsing.

🟢

SQLite

Local SQLite databases via file picker. Browse tables using sqlite_master and PRAGMA introspection.

SQL Editor
✏️

Monaco Editor

Powered by the same editor engine as VS Code. Syntax highlighting, auto-complete, and per-engine awareness.

📋

Multi-Tab Editing

Work on multiple queries simultaneously. Each tab binds to its own connection and database with a color-coded dot.

▶️

Execute Selection

Highlight a portion of SQL and press Cmd+Enter to run just that part. Full keyboard-driven workflow.

AI Assistant

Generate SQL

Describe what you want in plain English and the AI writes the query using your actual table names and columns.

💡

Explain Queries

Paste a complex query and get a plain-English breakdown of what each clause does.

Optimize Queries

Submit a slow query and receive optimization suggestions based on your database schema and indexes.

Schema Intelligence
🧠

Schema Embeddings

Index your database schema into vector embeddings so the AI knows your tables, columns, and relationships.

🗺️

Visual ERD Diagrams

Generate interactive entity-relationship diagrams from your live database with auto-layout and export.

🌳

Object Browser

Lazy-loading tree showing databases, tables, views, stored procedures, functions, indexes, and triggers.

Data Management
📝

Editable Grid

Edit First 500 Rows: double-click cells to edit inline, add/delete rows, and apply changes with generated SQL.

📤

Export Formats

Export results as CSV, JSON, Excel (.xlsx), XML, SQL INSERT statements, or copy to clipboard.

🗂️

Table Operations

Right-click tables to open, edit, delete, empty, truncate, duplicate, dump SQL, rename, or view DDL.

Cross-Platform
💻

macOS & Windows

Native builds for macOS (Apple Silicon and Intel) and Windows (MSI installer or NSIS setup).

🤖

Multiple LLM Providers

Choose from OpenAI, Anthropic, Google, ChatGPT, or any local LLM server (Ollama, LM Studio).

🌙

Dark & Light Themes

Toggle between dark and light themes with a single click. Deep navy-charcoal dark or clean white light.

See It In Action

Explore the interface with screenshots of each feature.

AI Assistant generating SQL queries with schema-aware context and actionable buttons
View Full Size
AI Assistant generating SQL queries with schema-aware context and actionable buttons
AI Chat with file attachments. Share screenshots, SQL files, and CSVs for context
View Full Size
AI Chat with file attachments. Share screenshots, SQL files, and CSVs for context
Visual ERD diagram showing all tables, columns, and relationships in the database
View Full Size
Visual ERD diagram showing all tables, columns, and relationships in the database
Dark theme with results grid showing employee data from a PostgreSQL database
View Full Size
Dark theme with results grid showing employee data from a PostgreSQL database
New MySQL connection form with host, port, SSL, and SSH tunnel options
View Full Size
New MySQL connection form with host, port, SSL, and SSH tunnel options
New PostgreSQL connection form with color-coded engine identity
View Full Size
New PostgreSQL connection form with color-coded engine identity
New SQLite connection. Just browse to a database file
View Full Size
New SQLite connection. Just browse to a database file
New SQL Server connection with TDS protocol support
View Full Size
New SQL Server connection with TDS protocol support
Table context menu with Open, Edit, Delete, Dump SQL, View DDL, Show ERD, and more
View Full Size
Table context menu with Open, Edit, Delete, Dump SQL, View DDL, Show ERD, and more
Export results as CSV, JSON, Excel, XML, SQL INSERT, or copy to clipboard
View Full Size
Export results as CSV, JSON, Excel, XML, SQL INSERT, or copy to clipboard
Query history with search, connection filter, execution time, and row counts
View Full Size
Query history with search, connection filter, execution time, and row counts
Favorites panel with folder organization for saved queries
View Full Size
Favorites panel with folder organization for saved queries
Settings for theme, editor font size, query limits, timeout, NULL display, and date format
View Full Size
Settings for theme, editor font size, query limits, timeout, NULL display, and date format
AI settings for provider selection, API keys, embedding config, and Local LLM support
View Full Size
AI settings for provider selection, API keys, embedding config, and Local LLM support
Local LLM configuration with Ollama or LM Studio endpoint, test connection, and model selection
View Full Size
Local LLM configuration with Ollama or LM Studio endpoint, test connection, and model selection
DC QueryStudio main interface with SQL editor, results grid, object browser, and AI assistant
View Full Size
DC QueryStudio main interface with SQL editor, results grid, object browser, and AI assistant

Key Features

  • 4 database engines in one app. MySQL, PostgreSQL, SQLite, and SQL Server
  • AI Assistant with Generate, Explain, and Optimize modes that understands your actual schema
  • Visual ERD diagrams generated from live database schemas with auto-layout and export
  • Schema embedding indexing for context-aware AI responses using your real tables and columns
  • 5 LLM providers. OpenAI, Anthropic, Google, ChatGPT, and fully local/offline LLM
  • File attachments in AI chat. Share ERD screenshots, CSV data, SQL scripts, and PDF specs
  • Monaco-based SQL editor with syntax highlighting and multi-tab editing
  • Editable data grid for direct row manipulation with change tracking
  • Export to CSV, JSON, Excel, XML, and SQL INSERT statements
  • Query history with full-text search, connection filtering, and selective cleanup
  • Favorites with folder organization and AI few-shot learning context
  • Cross-platform. macOS (Intel and Apple Silicon) and Windows
  • Built with Rust backend for native performance, not Electron
  • Completely free, no ads, no account required

How It Works

1

Connect

Add your database connection. MySQL, PostgreSQL, SQLite, or SQL Server. Test it with one click.

2

Query

Write SQL in the editor or ask the AI to generate it. Browse your schema in the object tree.

3

Analyze & Export

View results in the grid, edit data inline, visualize with ERD diagrams, and export in any format.

Who Is This For?

DC QueryStudio is built for:

Backend Developers who need a fast, modern SQL client for daily database work

Database Administrators managing multiple databases across different engines

Data Analysts running queries with AI assistance to explore datasets

Students & Educators learning SQL with AI-powered explanation and query generation

Anyone who wants a lightweight, AI-powered alternative to heavy database tools

System Requirements

macOS

  • macOS 12+ (Monterey or later)
  • Apple Silicon (M1/M2/M3/M4) or Intel
  • ~50 MB disk space

Windows

  • Windows 10 or 11 (64-bit)
  • ~50 MB disk space
  • MSI installer or NSIS setup

All database connections are made directly from the app. No additional drivers or middleware needed.

Getting Started

  1. 1

    Download and install

    Run the DMG on macOS or MSI/Setup on Windows. Open the app and you're ready to go.

  2. 2

    Add a connection

    Click the + button in the sidebar, select your database engine, fill in credentials, and test the connection.

  3. 3

    Write and run queries

    Type SQL in the editor or ask the AI to generate it. Press Cmd+Enter to execute and see results instantly.

  4. 4

    Set up AI (optional)

    Open Settings, add an API key (OpenAI, Anthropic, Google) or connect to a local LLM. Index your schema for the best AI experience.

Setting Up the AI Assistant

The AI Assistant is optional but powerful. It uses your database schema to generate accurate SQL, explain queries, and optimize performance. Choose the setup that fits your needs.

Before you start: The AI Assistant requires an active database connection. Connect to a database first, then the AI can read your schema to generate accurate, context-aware queries.

Cloud API Key

OpenAI, Anthropic, or Google

  1. 1 Get an API key from OpenAI, Anthropic, or Google AI Studio
  2. 2 Open Settings → Enable AI Assistant
  3. 3 Select your Provider and paste your API key
  4. 4 Choose a Chat Model (e.g., GPT-4o, Claude Sonnet 4.6, Gemini 2.5 Flash)
  5. 5 Set Embedding Provider to the same provider, or use "Local (offline)" for free embeddings
Best for: Highest quality responses, latest models, reliable uptime

ChatGPT Sign-In

Use your ChatGPT subscription

  1. 1 Open Settings → Enable AI Assistant
  2. 2 Select ChatGPT as the provider
  3. 3 Click Sign In and authenticate with your ChatGPT account
  4. 4 Choose a Codex model (e.g., GPT-5.3 Codex) for chat
  5. 5 Set up a separate Embedding Provider (see note below)
Important: ChatGPT sign-in does not support embeddings. You must configure a separate embedding provider: use "Local (offline)" for free built-in embeddings, set up a Local LLM Server (Ollama/LM Studio), or add an API key for OpenAI or Google embedding.
Best for: ChatGPT Plus/Pro subscribers, no separate API key needed, access to Codex models

Local LLM

Ollama or LM Studio

  1. 1 Install Ollama or LM Studio and download a model (e.g., llama3.2:8b)
  2. 2 Open Settings → Scroll to Local LLM section and enable it
  3. 3 Enter endpoint URL (Ollama: http://localhost:11434, LM Studio: http://localhost:1234)
  4. 4 Click Test Connection to verify, then select a Chat Model
  5. 5 Download an embedding model (e.g., nomic-embed-text) and select it as Embedding Model
Best for: Full privacy, no API costs, offline usage, data stays on your machine

Hybrid Approach

Mix local and cloud providers

Mix and match providers to optimize for cost, quality, and privacy. The chat model and embedding provider are configured independently.

Cloud chat + Local embeddings: Use OpenAI/Anthropic for high-quality chat responses, but run embeddings locally with Ollama for free schema indexing
ChatGPT chat + Local LLM embeddings: Use ChatGPT Codex models with your subscription, and Ollama for embedding support
Local everything + Cloud fallback: Use local models day-to-day, switch to a cloud provider when you need higher accuracy on complex queries
Best for: Balancing cost, quality, and privacy — most flexible setup

Understanding Embeddings

Embeddings are what make the AI understand your database. When you connect, QueryStudio indexes your table names, columns, types, and relationships into a vector representation. This lets the AI find the right tables and columns when you ask a question, even if you don't remember exact names.

Chat Model

Generates SQL, explains queries, and answers questions. Requires a cloud API key, ChatGPT sign-in, or local LLM.

Embedding Model

Indexes your schema for context-aware AI. Options: built-in "Local (offline)", a Local LLM server, or cloud API (OpenAI/Google).

Changelog

v0.2.0 - Cloud Readiness Analyzer, Chart Visualization, SQL Formatter, PDF Export

What's Next?

We're actively developing new features including:

  • SQL Server (MSSQL) full feature parity
  • Auto-complete with schema-aware suggestions
  • Query plan visualization (EXPLAIN ANALYZE)
  • Data import from CSV/JSON/Excel
  • Connection groups and workspaces
  • Linux support

Have a suggestion? We'd love to hear what features you need most.

Frequently Asked Questions

Do I need the AI Assistant to use DC QueryStudio?
No. The AI Assistant is entirely optional. The SQL editor, object browser, data editing, export, query history, favorites, ERD diagrams, and all other core features work without any AI configuration. You can always add it later.
Do I need to connect to a database before using the AI?
Yes. The AI Assistant requires an active database connection to work. It reads your schema (table names, columns, types, relationships) to generate accurate, context-aware SQL queries. Without a connection, the AI has no schema context and cannot produce useful results.
What are schema embeddings and how do they work?
When you connect to a database, QueryStudio reads your schema and converts table names, column names, data types, and relationships into vector embeddings — a numerical representation that the AI can search through. When you ask a question like "show me all orders from last month," the AI uses these embeddings to find the relevant tables and columns (e.g., orders, order_date) even if you don't remember the exact names. This is what makes the AI schema-aware rather than just a generic SQL generator.
When does embedding indexing happen?
By default, schema indexing runs automatically when you connect to a database (controlled by the "Auto-index schema on connect" setting). You can also manually trigger re-indexing from the AI panel's embedding status indicator. The embedding status shows as a colored dot: green means indexed and ready, yellow means stale (schema may have changed), and gray means not yet indexed. Re-indexing is fast for most databases — typically a few seconds.
What are few-shot examples and how do they improve AI answers?
Few-shot examples are real queries from your history that the AI includes as context when generating new SQL. For example, if you've previously written SELECT u.name, COUNT(o.id) FROM users u JOIN orders o ON u.id = o.user_id GROUP BY u.name, the AI learns your preferred join style, aliases, and patterns. The "Max Example Queries" setting (default: 3) controls how many examples are included. More examples give the AI better context about your conventions, resulting in SQL that matches your style.
Can I use ChatGPT sign-in for embeddings?
No. ChatGPT sign-in (Codex models) only supports chat — it cannot generate embeddings. If you use ChatGPT as your chat provider, you need a separate embedding provider. The easiest option is the built-in "Local (offline)" embedder, which works without any setup. Alternatively, you can use a Local LLM server (Ollama with a model like nomic-embed-text) or add an API key for OpenAI or Google embedding.
Is my data sent to the cloud when using the AI?
It depends on your provider choice. With cloud providers (OpenAI, Anthropic, Google, ChatGPT), schema metadata — table names, column names, and types — is sent to the provider's API so the AI can generate accurate queries. Your actual data rows are never sent. If you use a Local LLM (Ollama or LM Studio), everything stays on your machine — no data leaves your computer. For maximum privacy, use the Local LLM approach for both chat and embeddings.
Which AI provider should I choose?
  • OpenAI (GPT-4o): Best overall quality for SQL generation. Reliable and fast.
  • Anthropic (Claude Sonnet 4.6): Excellent for detailed query explanations and optimization advice.
  • Google (Gemini 2.5 Flash): Good balance of speed and cost. Free tier available.
  • ChatGPT (Codex models): Great if you already have a ChatGPT Plus or Pro subscription. No separate API key needed.
  • Local LLM: Best for privacy and zero cost. Quality depends on the model and your hardware.
Can I attach files to AI chat messages?
Yes. You can attach files for additional context using the paperclip button in the AI chat input. Supported file types include SQL scripts, CSV data, JSON, screenshots (PNG, JPG), and PDFs. For example, you can attach an ERD diagram screenshot and ask the AI to generate queries based on the visual schema. Up to 5 files per message, 10 MB each.
What databases are supported?
DC QueryStudio supports four database engines: MySQL, PostgreSQL, SQLite, and SQL Server. Each engine has full support for schema browsing, query execution, data editing, ERD diagrams, and AI assistance. Connections support SSL encryption and SSH tunneling for secure remote access.
Is DC QueryStudio free?
Yes, DC QueryStudio is free to download and use. The AI Assistant requires your own API key (for cloud providers) or a local LLM setup, but all non-AI features — SQL editing, schema browsing, data export, ERD diagrams, history, favorites, and data editing — are fully available at no cost.
Can I switch between AI providers without losing chat history?
Yes. Chat history is stored locally on your machine, not with the provider. You can switch providers at any time in Settings and your previous conversations remain accessible in the chat history panel. You can even select a different model for individual messages using the model selector in the AI panel.

Get Started Today

Download DC QueryStudio and work with your databases faster. The AI knows your schema.

Download Now
macOS Windows
cta-image

Need a Custom Desktop Application?

We build modern, cross-platform desktop applications tailored to your business needs. From internal tools and data analyzers to customer-facing software. Tell us your requirements and we'll build a polished application.

Discuss Your Project