SQLLens.AI — SQL, MySQL, PostgreSQL, MariaDB & SQLite Client, Query Optimizer & Performance Monitor
SQL, MySQL, PostgreSQL, MariaDB, and SQLite — find the slow query, fix it, and prove it in VS Code, Cursor, Windsurf & Open VSX editors.
SQL, MySQL, PostgreSQL (Postgres), MariaDB & SQLite client and database GUI — SQL editor, visual query builder, query optimizer (EXPLAIN / EXPLAIN ANALYZE), slow query log analyzer, performance monitor, and AI SQL (text to SQL). SQL Editor opens after connect.
Write SQL in seconds · Optimize MySQL & PostgreSQL queries automatically · Monitor production live. One database client and SQL GUI for developers who ship queries and DBAs who keep them fast.
People search: SQL · MySQL · PostgreSQL · Postgres · MariaDB · SQLite · SQL editor · sql client · mysql client · postgres client · database client · database GUI · query builder · query optimizer · EXPLAIN ANALYZE · slow query log · performance monitor · AI SQL
|
Advanced Features
Most of them are available only in SQLLens.ai — less typing, more building
|
| |
|
|
|
|
1 · DB AI Copilot Natural language → SQL |
2 · Advanced Query Builder Drag & drop · FK-aware JOINs |
3 · Query Optimizer Smart indexing · up to 100× faster |
4 · DB Workload Optimizer Few clicks · no expert needed |
5 · DB Performance Monitor Live dashboard · 3-part tour |
1 · DB AI Copilot — natural language to SQL
Natural language → SQL
Tell your request. AI writes the SQL against the tables you actually have.
- Generate, explain, fix, and refactor SQL from plain English
- Create tables, views, procedures, and triggers from the connection tree
- Integrated Cloud, OpenRouter, Groq, OpenAI, Anthropic, Ollama, or your endpoint
From a sentence to SQL — next, Advanced Query Builder assembles FK-aware JOINs when you drag from the tree.
2 · Advanced Query Builder — drag, drop, done
Drag & drop · FK-aware JOINs
Stop typing JOINs from memory.
- Drag tables into any
.sql file; relationships are detected automatically
- Clause-aware columns for
SELECT, WHERE, ON, ORDER BY, and more
- Starters for
SELECT, INSERT, UPDATE, and DELETE
Visual SQL is ready — Query Optimizer scores the plan, recommends indexes, and shows evidence-backed speedups.
3 · Query Optimizer — smart indexing. Up to 100× faster — proven by evidence
Smart indexing · proven by evidence
Visual EXPLAIN, index advice, and before/after proof — not guesswork.
- Interactive plan tree with cost, rows, and index usage you can trust
- Missing-index recommendations from EXPLAIN plus schema metadata
- AI rewrites and Analyze trace so improvements are measurable, not theoretical
One slow statement is a clue — DB Workload Optimizer ranks the whole slow log and batch-fixes the worst offenders.
4 · DB Workload Optimizer — Boost DB Performance in Just a Few Clicks. No Expert Needed.
Boost performance · few clicks
Rank slow queries, fix the worst patterns, and see the benefit — without a DBA playbook.
- Ingest the slow query log and rank what hurts production
- Open each digest in the optimizer with full SQL context — guided, not manual
- Batch-apply index recommendations and review the before/after benefit report
Patterns in the log meet live health — DB Performance Monitor watches connections, locks, and config while the database is still answering.
5 · DB Performance Monitor — catch the spike first
Part 1 · Live workload
See what the database is doing right now.
- Running queries, thread activity, and who is waiting
- Long transactions, undo logs, and client connection breakdown
- Lock waits and deadlock signals before users notice
When the dashboard shows pressure, Part 2 turns those live metrics into ranked MySQL and PostgreSQL configuration fixes.
Part 2 · Configuration
Config fixes ranked by impact.
- MySQL and PostgreSQL recommendations from live metrics
- Buffer, cache, and connection settings explained in plain language
- Prioritized changes — biggest win first, not a generic checklist
With config on track, Part 3 audits unused indexes, redundant keys, and schema risks — without a separate tooling pass.
Part 3 · Indexes & schema
Indexes and schema risks in one pass.
- Unused and redundant indexes — reclaim space and write speed
- Table insights, normalization, and datatype mismatches
- Schema hygiene without a separate audit tool
Connections, load, and health while the database is still answering.
Why teams switch
| Ask in plain English | DB AI Copilot turns a sentence into schema-aware SQL — and fixes errors from the gutter. |
| Stop hand-writing JOINs | Drag tables from the tree; foreign-key aware JOINs and clause-aware SQL are generated for you. |
| See why it is slow | Visual EXPLAIN, index advisor, and AI rewrites — before you touch production. |
| Fix the whole workload | Rank the worst statements from the slow log and batch-fix them. |
| Catch spikes early | Live performance dashboard: connections, locks, config tuning, unused indexes. |
Tip: run sqllens.ai: Quick Start from the Command Palette for an in-app tour of all five modules.
Your database toolkit — SQL, MySQL, PostgreSQL, MariaDB & SQLite
| MySQL (5.7+ / 8.0+) | Full MySQL client & GUI — SQL editor, visual EXPLAIN / EXPLAIN ANALYZE, index advisor, slow_query_log & performance_schema workload tuning, InnoDB lock & live performance monitor. |
| PostgreSQL / Postgres (12+) | Full PostgreSQL client & GUI — SQL editor, visual EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON), index recommendations (B-tree, GIN, GiST, Hash, pgvector HNSW/IVFFlat), pg_stat_statements slow query analyzer, and pg_stat_activity / pg_locks live monitor. |
| MariaDB (10.x+) | Native MariaDB SQL client & GUI — visual query builder, execution plan analyzer, slow query digest, index tuning, and real-time server health dashboard. |
| SQLite (3.x local file) | Zero-config SQLite viewer, browser & SQL editor — open .sqlite / .db files, inspect schemas & foreign keys, run EXPLAIN QUERY PLAN, and build queries visually. |
Built for real workflows
- Multi-database sidebar — browse databases, schemas, tables, columns, keys
- SQL editor — run queries, inspect results in a fast data grid, EXPLAIN in one click
- Secure by default — passwords live in the VS Code secrets store; connection pooling built in
- Developers and DBAs — locks, deadlocks, long transactions, connection pressure, config tuning
Connect in under a minute
| MySQL / MariaDB | Host, port 3306, user, password, optional database |
| PostgreSQL | Host, port 5432, user, password, database |
| SQLite | Path to a .sqlite / .db file — no server needed |
Requires: VS Code 1.85+ · MySQL 5.7+/8.0+ · MariaDB 10.x+ · PostgreSQL 12+ · SQLite 3.x
See it all in one walkthrough
▶️ Watch the full product demo on YouTube
Common features — every day in the editor
| Smart autocomplete | Context-aware completions for schemas, tables, columns, keywords, and functions for your active connection. Type @ for DBA snippets, EXPLAIN templates, and ranked commands without leaving the buffer. |
| SQL favorites | Star the queries you run every day and organize them in the SQL Favorites view. Run, insert, or manage favorites from the sidebar or Command Palette — scoped to how you work. |
| Query rewriting | Query Optimizer proposes rewrites (JOINs, date ranges, NOT IN → NOT EXISTS, OR → UNION, and more). Compare original vs suggested SQL with visual EXPLAIN and index advice before you ship. |
| Auto-highlight errors | Live diagnostics underline risky patterns and errors as you edit and after you run SQL. Jump from the gutter to the problem line; pair with AI Copilot to fix syntax and logic fast. |
| Slow queries | Surface slow statements from the server log, Performance Schema, or pg_stat_statements (PostgreSQL). Open the workload optimizer to rank digests, batch-tune patterns, and tie spikes to live PM metrics. |
| EXPLAIN & ANALYZE | Run EXPLAIN / EXPLAIN ANALYZE (and PostgreSQL equivalents) from the editor or @-menu. Query Optimizer Analyze runs the full pipeline: plan, indexes, rewrites, and trace when you need depth. |
| Visual results grid | Run with F9 (or your keybinding); sort, filter, and page large result sets in the data grid. Export when you need CSV; keep EXPLAIN and timing close to the statement you just executed. |
| Secure connections | Passwords stay in the VS Code secret store; pooled connections per profile. Read-only test users, scoped databases, and SSL options match how teams connect in real environments. |
Install
Install only one skylineai listing in the same VS Code / Cursor window (shared commands).
License & support
MIT. skylineai.app · hello@skylineai.app
| |