multi-database connection management with persistent credential storage
Manages connections to 10+ database systems (MySQL, PostgreSQL, SQLite, MongoDB, Redis, ClickHouse, Kafka, Snowflake, ElasticSearch, SQL Server) through a unified sidebar explorer panel. Stores connection credentials locally within VS Code's extension storage, supporting SSH tunneling for remote database access. Each connection maintains separate session state and schema cache, allowing developers to switch between databases without reconnecting.
Unique: Integrates 10+ heterogeneous database drivers (MySQL, PostgreSQL, MongoDB, Redis, Snowflake, etc.) into a single unified sidebar explorer with SSH tunneling support, rather than requiring separate client tools for each database type. Uses VS Code's extension storage for credential persistence and native ssh2 library for remote access.
vs alternatives: Eliminates context switching between DBeaver, MongoDB Compass, Redis Desktop Manager, and other specialized clients by consolidating all database operations into the development environment.
inline sql query execution with keyboard shortcuts and result viewing
Executes SQL queries directly from a dedicated SQL editor window bound to a specific database connection. Supports two execution modes: (1) run selected text or current cursor line via Ctrl+Enter, (2) run entire editor buffer via Ctrl+Shift+Enter. Results render in a tabular format with pagination, sorting, and inline cell editing. Query execution happens synchronously with result streaming to the editor, and execution time is tracked.
Unique: Implements dual-mode query execution (selected text vs. full buffer) with keyboard shortcuts directly in VS Code's editor, using the editor's native text selection and cursor APIs. Results render inline in the editor pane rather than a separate window, maintaining context with the query source.
vs alternatives: Faster iteration than external SQL clients because query execution and result viewing happen in the same window as query editing, eliminating window switching and copy-paste overhead.
ssh tunneling for remote database access
Establishes SSH tunnels to remote database servers, enabling secure access to databases behind firewalls or on private networks. SSH connection parameters (host, port, username, key/password) are configured per database connection. The extension uses the ssh2 library to establish tunnels and forwards local ports to remote database ports. Tunnels persist for the duration of the VS Code session.
Unique: Integrates ssh2 library to establish SSH tunnels directly from VS Code, forwarding local ports to remote database servers. Tunnels persist for the session and are transparently used for all database operations on that connection.
vs alternatives: More convenient than managing SSH tunnels separately in a terminal because tunnel establishment and database operations are unified in a single connection configuration.
telemetry collection with opt-out control
Collects anonymous usage data (queries executed, tables accessed, features used) and sends it to the Database Client telemetry server. Telemetry is enabled by default but can be disabled via the `database-client.telemetry.usesOnlineServices` setting. Telemetry respects VS Code's global telemetry settings. No personally identifiable information is collected.
Unique: Implements opt-out telemetry collection with VS Code settings integration, allowing users to disable data collection via `database-client.telemetry.usesOnlineServices` configuration. Respects VS Code's global telemetry settings.
vs alternatives: More privacy-conscious than many extensions because telemetry is documented and can be disabled; however, specific data points collected are not transparent.
sql autocomplete and snippet generation with database schema awareness
Provides IntelliSense-style autocomplete for SQL keywords, table names, and column names by parsing the connected database's schema metadata. Includes pre-built SQL snippets for common patterns (SELECT, INSERT, UPDATE, DELETE, JOIN) that expand with placeholder syntax. Autocomplete triggers on typing and filters suggestions based on context (e.g., column suggestions after SELECT, table suggestions after FROM).
Unique: Integrates VS Code's native IntelliSense provider API with live database schema metadata, enabling context-aware autocomplete that filters suggestions based on SQL statement position (e.g., column suggestions only after SELECT). Uses cached schema to avoid repeated database queries during typing.
vs alternatives: More responsive than external SQL clients' autocomplete because schema is cached locally in VS Code's memory; eliminates network round-trips per keystroke.
table data viewing and inline editing with search filtering
Displays table data in a paginated grid view with sortable columns and inline cell editing. Clicking a table name in the sidebar opens a dedicated view showing all rows with column headers. Supports full-text search across table rows (filters displayed rows in real-time), and allows direct editing of cell values by clicking and typing. Changes are committed to the database immediately (no transaction staging). Pagination controls allow navigation through large tables without loading entire dataset into memory.
Unique: Renders table data directly in VS Code's webview panel with inline cell editing that commits changes immediately to the database, rather than requiring separate SQL UPDATE statements. Uses VS Code's native grid/table UI components for consistent styling and keyboard navigation.
vs alternatives: Faster than writing SELECT and UPDATE queries for quick data corrections; eliminates SQL syntax overhead for simple edits.
database schema visualization and navigation with hierarchical explorer
Displays database structure as a hierarchical tree in the sidebar explorer, showing databases → tables → columns → indexes. Each node is clickable to open corresponding views (table data, column details). The explorer caches schema metadata locally to avoid repeated database queries. Supports collapsing/expanding nodes to navigate large schemas. Right-click context menus on tables provide quick actions (view data, backup, import, generate mock data).
Unique: Implements a VS Code sidebar tree view provider that caches database schema metadata locally and renders it as a collapsible hierarchy, enabling fast navigation without repeated database queries. Uses VS Code's native tree view API for consistent UI and keyboard navigation.
vs alternatives: More integrated into the development workflow than external schema visualization tools because it lives in the sidebar alongside other VS Code panels, eliminating context switching.
sql formatting and syntax validation
Automatically formats SQL code in the editor using the sql-formatter library, supporting indentation, keyword capitalization, and line breaks. Triggered via command palette or keyboard shortcut. Validates SQL syntax against the target database's dialect (MySQL, PostgreSQL, etc.) and highlights errors inline in the editor. Syntax validation runs on save or on-demand and provides error messages with line numbers.
Unique: Uses the sql-formatter library to provide database-agnostic SQL formatting directly in the editor, with inline syntax error highlighting that integrates with VS Code's native error reporting UI. Formatting is applied in-place without external tool invocation.
vs alternatives: Faster than manual formatting or external formatters because it runs locally in VS Code without network calls or subprocess overhead.
+4 more capabilities