Database Explorer for VS Code
January 21, 2026 ยท View on GitHub
A powerful PostgreSQL database explorer and query interface that integrates seamlessly into Visual Studio Code. Browse database schemas, execute SQL queries, and manage your data without leaving your development environment.
โจ Features
- ๐๏ธ Database Schema Browser: Explore databases, tables, columns, indexes, and constraints
- โก SQL Query Execution: Run SQL queries with syntax highlighting and formatted results
- ๐ Data Browser: Browse and paginate through table data with smart formatting
- ๐ Table Details: View table structure, indexes, constraints, and relationships
- ๐พ Export Data: Export query results and table data to CSV
- ๐จ Native VS Code Integration: Clean UI that matches VS Code's design language
- ๐ Secure Configuration: Environment-based connection management
๐ Getting Started
Installation
- Install from VS Code Marketplace: Search for "Database Explorer" by innoiso
- Or install via command line:
code --install-extension innoiso.vscode-database-explorer
Database Configuration
Option 1: Environment Variables (Recommended)
Create a .env file in your workspace root:
PGHOST=localhost
PGPORT=5432
PGDATABASE=your_database
PGUSER=your_username
PGPASSWORD=your_password
Option 2: VS Code Settings
Add to your VS Code settings:
{
"databaseExplorer.host": "localhost",
"databaseExplorer.port": 5432,
"databaseExplorer.database": "your_database",
"databaseExplorer.username": "your_username",
"databaseExplorer.password": "your_password"
}
Usage
-
Open Database Explorer:
- Click the database icon in the Activity Bar, or
- Use Command Palette (
Ctrl+Shift+P) โ "Database Explorer: Open"
-
Explore Your Database:
- Browse tables, views, and schemas in the Explorer tab
- Click on tables to view structure and data
- Use the SQL Query tab to run custom queries
-
Execute SQL Queries:
- Write SQL in the query editor with syntax highlighting
- Press
Ctrl+Enteror click Run to execute - View results in formatted tables
- Export results to CSV
๐ผ๏ธ Screenshots
Database Schema Explorer
Browse your database structure with an intuitive tree view showing tables, columns, indexes, and constraints.

SQL Query Interface
Execute SQL queries with syntax highlighting, error reporting, and formatted result tables.

Home
Quickly access the Explorer and Query tools from the home screen.

๐ Supported Database Features
- โ Tables: View structure, data, indexes, constraints
- โ Views: Browse view definitions and data
- โ Schemas: Multi-schema database support
- โ Data Types: Full PostgreSQL data type support
- โ Indexes: View index definitions and usage
- โ Constraints: Primary keys, foreign keys, unique, check constraints
- โ SQL Execution: Full SQL query support with error handling
๐ง Requirements
- VS Code: Version 1.74.0 or higher
- PostgreSQL: Version 9.6 or higher
- Network Access: Connection to your PostgreSQL database
๐ ๏ธ Configuration
Workspace Settings
Configure per-workspace in .vscode/settings.json:
{
"databaseExplorer.host": "your-db-host",
"databaseExplorer.port": 5432,
"databaseExplorer.database": "your-database",
"databaseExplorer.username": "your-username"
}
Environment Variables
Supports standard PostgreSQL environment variables:
PGHOST- Database hostPGPORT- Database portPGDATABASE- Database namePGUSER- UsernamePGPASSWORD- Password
๐ Security & Privacy
- Local Processing: All database operations run locally within VS Code
- No Data Collection: Extension does not collect or transmit user data
- Secure Connections: Supports SSL/TLS encrypted connections
- Environment-Based Config: Sensitive credentials via environment variables
๏ฟฝ Documentation
Commands
Database Explorer: Open- Open the Database Explorer panel
Activity Bar
The extension adds a Database Explorer icon to the VS Code Activity Bar for quick access.
๐ Troubleshooting
Connection Issues
- Verify database credentials and network connectivity
- Check firewall settings and PostgreSQL configuration
- Ensure PostgreSQL server is running and accepting connections
Performance
- Large result sets are automatically paginated
- Consider adding WHERE clauses to limit query results
- Use table data browser for large tables instead of SELECT *
๐ค Support
For issues, questions, or feature requests, please contact the development team.
๐ License
MIT License. See LICENSE.
๐ Third-Party Notices
See THIRD_PARTY_NOTICES.md and NOTICE.md.
๐งฉ Dev-Only Tooling Note
This repo includes dev-only tooling dependencies (for example @vscode/vsce-sign*) used for packaging. These are not committed to the repo and are not distributed in releases because node_modules/ is not checked in and the .vsix packaging excludes them.
Made with โค๏ธ by Innoiso Technology