🐘 NexQL

July 9, 2026 Β· View on GitHub

🐘 NexQL

Professional Database Management for VS Code

NexQL is a comprehensive PostgreSQL database management extension featuring interactive SQL notebooks, real-time monitoring dashboard, AI-powered assistance, and advanced database operationsβ€”all within VS Code.


πŸ“Έ Screenshots

πŸŽ₯ Video Guides

1. Quick Setup

NexQL Setup

2. More Settings

More Settings

3. AI Assistant

AI Assistant

4. AI Copilot

AI Copilot

5. Dashboard

Dashboard

6. DB Operations

DB Operations

7. Power Editor

Power Editor

8. More Features

More Features


✨ Key Features

FeatureDescription
πŸ”Œ Secure ConnectionsManage multiple connections with VS Code SecretStorage encryption
πŸ›‘οΈ Connection SafetyEnvironment tagging (πŸ”΄ PROD, 🟑 STAGING, 🟒 DEV), read-only mode, query safety analyzer
πŸ“Š Live DashboardReal-time metrics, active query monitoring, and performance graphs
πŸ““ SQL NotebooksInteractive notebooks with rich output, AI assistance, and export options
πŸ’Ύ Saved QueriesTag-based organization, AI metadata generation, connection context restoration, edit & reuse
🌳 Database ExplorerBrowse tables, views, functions, types, extensions, roles, and FDWs
πŸ› οΈ Object OperationsFull CRUD operations, scripts, VACUUM, ANALYZE, REINDEX
πŸ“Š Table IntelligenceProfile, activity monitor, index usage analytics, definition viewer
πŸ” EXPLAIN CodeLensOne-click EXPLAIN/ANALYZE with results in notebooks
πŸ›‘οΈ Auto-LIMITAutomatic query protection with configurable row limits (default 1000)
🌍 Foreign Data WrappersManage foreign servers, user mappings, and tables
πŸ€– NexQL Free AIZero-config AI assistant β€” Smart/Engineer/Architect tiers, no API keys needed
πŸ”Œ MCP ServerBuilt-in MCP server β€” expose your database to Copilot, Cursor, Claude Desktop & more
⌨️ Developer ToolsIntelliSense, keyboard shortcuts, PSQL terminal access
πŸ“€ Export DataExport query results to CSV, JSON, or Excel formats
πŸ“‰ Large result streamingOptional sliding-window cursor mode for big SELECTs β€” bounded memory, scroll to fetch
πŸ”’ Binary columnsConfigurable bytea display (hex / PostgreSQL / JSON debug)
πŸ€– SQL AssistantRegenerate last reply or resend from an earlier user message; prefill when attaching context

🎯 Why NexQL?

🎨 Modern Interface

  • Beautiful, intuitive UI designed for developers
  • Real-time dashboard with live metrics
  • Context-aware operations
  • Seamless VS Code integration

⚑ Powerful Features

  • Interactive SQL notebooks
  • πŸ€– AI-powered Copilot & agentic support
  • Advanced query management
  • Complete CRUD operations

πŸ” Secure & Reliable

  • VS Code SecretStorage for credentials
  • Environment tagging & read-only mode
  • Query safety analyzer with risk scoring
  • Auto-LIMIT protection
  • Transaction support

πŸ“Š Performance Intelligence

  • Table profiling with size breakdown
  • Real-time activity monitoring
  • Index usage analytics
  • Bloat detection & warnings
  • EXPLAIN CodeLens for optimization

πŸš€ Developer Friendly

  • πŸ€– NexQL Free AI β€” zero-config, no API key needed
  • πŸ”Œ Built-in MCP server for Copilot, Cursor, Claude Desktop
  • Keyboard shortcuts
  • IntelliSense support
  • PSQL terminal integration

πŸ“‹ Feature Matrix

AreaNexQL v2.2.0Notes
Core PostgreSQL object operationsβœ…Tables, views, mat views, functions, roles, extensions, FDWs, and more
AI-assisted SQL workflowsβœ…Generate, optimize, explain, analyze, and notebook handoff
NexQL Free AI (zero-config)βœ…Smart / Engineer / Architect tiers, no API keys required
MCP Serverβœ…Expose DB tools to Copilot, Cursor, Claude Desktop, and more
Production safety controlsβœ…Read-only mode, query risk scoring, confirmation prompts, Auto-LIMIT
Real-time monitoring dashboardβœ…Activity and performance telemetry in VS Code
Interactive SQL notebooksβœ…Native .pgsql notebook workflow
Data Importβœ… FreeNo usage cap β€” unlimited across all tiers
Backup & Restoreβœ… FreeNo usage cap β€” unlimited across all tiers
Database Indexingβœ… FreeBuild, auto-index, semantic index β€” unlimited across all tiers
In-grid editing parity with desktop IDEs⚠️ PartialPlanned enhancements in upcoming releases
ERD/schema visualization parity⚠️ PartialUnder active expansion

⚠️ Known Limitations (v2.2.0)

  • In-grid editing is currently more limited than full desktop DB IDEs.
  • ERD/schema visualization is available but not yet feature-complete.
  • Some advanced PostgreSQL admin workflows are partial and are scheduled for incremental updates.
  • NexQL Free AI gateway is in Beta and may be subject to quota adjustments.

🌐 Works With Your Postgres β€” Wherever It Runs

NexQL connects to any PostgreSQL-wire-compatible database:

  • βœ… PostgreSQL 12–17 β€” self-hosted, Docker, on-prem
  • βœ… Neon β€” serverless Postgres (use the direct endpoint, SSL require)
  • βœ… Supabase β€” direct or session pooler connections
  • βœ… TimescaleDB & Timescale Cloud β€” 100% compatible (Postgres extension)
  • βœ… YugabyteDB (YSQL) β€” distributed Postgres, port 5433
  • βœ… AWS RDS / Aurora, Google Cloud SQL / AlloyDB, Azure Database for PostgreSQL

See the compatibility guide for per-platform connection settings and caveats.


🌳 Database Explorer

Navigate your database with an intuitive hierarchical tree view:

πŸ“ Connection
└── πŸ—„οΈ Database
    └── πŸ“‚ Schema
        β”œβ”€β”€ πŸ“Š Tables
        β”œβ”€β”€ πŸ‘οΈ Views
        β”œβ”€β”€ πŸ”„ Materialized Views
        β”œβ”€β”€ βš™οΈ Functions
        β”œβ”€β”€ 🏷️ Types
        β”œβ”€β”€ 🌍 Foreign Data Wrappers
        β”œβ”€β”€ 🧩 Extensions
        └── πŸ‘₯ Roles

πŸ’Ύ Saved Queries Library

Organize, manage, and reuse your most important queries with intelligent tagging and context preservation.

Core Capabilities

  • 🏷️ Tag-Based Organization β€” Group queries by purpose for instant discovery
  • πŸ”— Connection Context β€” Queries remember their original connection, database, and schema
  • πŸ““ One-Click Reopening β€” Restore queries with full context in a new notebook
  • ✏️ In-Place Editing β€” Modify queries without creating duplicates
  • πŸ€– AI Metadata Generation β€” Auto-generate titles, descriptions, and tags
  • πŸ“Š Rich Metadata Display β€” See creation date, usage count, database, and connection at a glance

πŸ€– AI-Powered Assistance

Leverage AI to write, optimize, and debug your queries faster.

πŸš€ NexQL Free AI β€” Zero-Config (Default, v2.2.0)

No API keys, no provider accounts, no setup. NexQL Free AI is the default AI provider, powered by managed models behind a secure gateway proxy:

  • 🧠 Smart (free) β€” Daily-use AI for queries, explanations, and schema help. ~600K tokens/month.
  • πŸ”§ Engineer (Sponsor Β· $2/mo) β€” Advanced model for complex optimization and migrations. ~3M tokens/month.
  • πŸ—οΈ Architect (Singularity Β· $9/mo) β€” The best AI for database engineering. ~10M tokens/month.

πŸ”Œ MCP Server β€” New in v2.2.0

NexQL now exposes your connected PostgreSQL databases as a Model Context Protocol (MCP) server, letting GitHub Copilot, Cursor, Claude Desktop, and any other MCP-compatible AI agent use NexQL's live schema tools:

  • Schema discovery (list_schemas, list_objects, describe_object, search_schema)
  • Safe SQL execution (run_select, explain_query)
  • Join-path inference (get_join_path)
  • Performance analytics (get_table_stats, get_index_usage)

Enable via NexQL Settings β†’ Preferences. VS Code's Copilot discovers NexQL automatically β€” no manual config required.

  • Smart Completions β€” Context-aware SQL suggestions
  • Query Explanation β€” Understand complex queries in plain English
  • Query Optimization β€” Get performance improvement suggestions
  • Error Detection β€” Real-time syntax and logical error detection
  • Natural Language to SQL β€” Describe what you need, let AI write the SQL

πŸ›‘οΈ Safe AI Execution

NexQL provides a Safe Execution Model for AI interactions.

  • Human-in-the-Loop: AI generates the code, but it is never executed automatically. You review it in a notebook cell first.
  • Context Control: You decide which tables the AI can see.

Supported AI Providers:

  • NexQL Free AI (default β€” no API key required)
  • GitHub Copilot (VS Code LM)
  • GitHub Models (GitHub account sign-in)
  • OpenAI (GPT-4.1, o4-mini, and more)
  • Anthropic Claude (Sonnet 4, Haiku, and more)
  • Google Gemini (2.5 Flash, 2.5 Pro)
  • Ollama / LM Studio / Custom OpenAI-compatible endpoints

🎨 Rich Data Visualization

Transform your data into insights without exporting to Excel.

Instantly Visualize Results

  • One-Click Charts: Create Bar, Line, Area, and Pie charts from any query result.
  • Customizable: Adjust log scales, use varied point styles, and control fill opacity.
  • Modern VFX: Enable Glow and Blur effects for stunning, dashboard-ready visuals.
  • Custom Endpoints

πŸš€ Quick Start

Installation

  1. Open VS Code β†’ Press Ctrl+Shift+X
  2. Search for NexQL
  3. Click Install

Or install via command line:

code --install-extension ric-v.postgres-explorer

First Connection

  1. Click the PostgreSQL icon in the Activity Bar
  2. Click Add Connection or use Ctrl+Shift+P β†’ PostgreSQL: Add Connection
  3. Enter your connection details and click Save
  4. Click on your connection to connect and start exploring!

πŸ“Š Complete Database Operations

Object TypeOperations
πŸ“Š TablesView, Edit, Insert, Update, Delete, Truncate, Drop, VACUUM, ANALYZE, REINDEX
πŸ‘οΈ ViewsView Definition, Edit, Query Data, Drop
πŸ”„ Materialized ViewsRefresh, View Data, Edit, Drop
βš™οΈ FunctionsView, Edit, Call with Parameters, Drop
🏷️ TypesView Properties, Edit, Drop
🌍 Foreign Data WrappersCreate/Drop Server, User Mappings, Import Schema
πŸ”— Foreign TablesView, Edit, Drop
🧩 ExtensionsEnable, Disable, Drop
πŸ‘₯ RolesGrant/Revoke Permissions, Edit, Drop

⌨️ Keyboard Shortcuts

ShortcutAction
Ctrl+EnterExecute current cell
Shift+EnterExecute and move to next
F5Refresh current item
Ctrl+Shift+PCommand palette

πŸ“š Resources


πŸ“ License

This extension is licensed under the MIT License.


Made with ❀️ for the PostgreSQL Community

Also available on Open VSX