Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSDB - Database ClientNew to Visual Studio Code? Get it now.
VSDB - Database Client

VSDB - Database Client

bigfish

|
3 installs
| (0) | Free
A full-featured database client for VSCode. Connect to MySQL/PostgreSQL, browse schema, edit data, run SQL queries.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSDB - VSCode Database Client

VS Code Marketplace License

A full-featured database client extension for Visual Studio Code. Connect to MySQL and PostgreSQL databases, browse schema, edit data, and execute SQL queries - all within VSCode.

Features

🔌 Connection Management

  • Auto-scan project - Automatically discover database connections from:
    • .env files (DATABASE_URL, DB_HOST, etc.)
    • docker-compose.yml (MySQL/PostgreSQL services)
    • Framework configs (TypeORM, Laravel, Django, Prisma)
  • Project-level & Global connections - Share connections across projects or keep them private
  • Encrypted password storage - Secure credentials via VSCode SecretStorage API

🗄️ Database Explorer

  • Browse databases, tables, columns, views, procedures
  • View table structure with indexes, constraints, triggers
  • Column details: type, nullable, primary key, auto-increment

📝 SQL Editor

  • Syntax highlighting with Monaco Editor
  • Query history with pin support
  • Result grid with pagination (large datasets use streaming)
  • Inline data editing

📊 Data Operations

  • Export to CSV, JSON, SQL
  • Import from CSV, JSON
  • Search tables, columns, and data

🔄 Smart Behaviors

  • Auto-connect on expand - Click or expand a disconnected connection node to connect
  • Connection recovery - Auto-restart after worker crash

Installation

From VSCode Marketplace

  1. Open VSCode
  2. Press Ctrl+Shift+X (Extensions)
  3. Search for "VSDB" or "bigfish.vsdb"
  4. Click Install

From Source

git clone https://github.com/bigfish/vsdb.git
cd vsdb
npm install --legacy-peer-deps
npm run compile
cd webview-ui && npm install && npm run build

Then in VSCode: Press F5 to run in development mode.

Usage

Quick Start

  1. Open VSDB sidebar (database icon in Activity Bar)
  2. Click Add Connection or Scan Project
  3. Expand connection node to connect
  4. Browse tables and run queries

Commands

Command Description
VSDB: Add Connection Add a new database connection
VSDB: Scan Project Auto-discover connections from project files
VSDB: New Query Open SQL Editor
VSDB: Connect Connect to selected database
VSDB: Disconnect Disconnect from database

Keyboard Shortcuts

  • Right-click on tree items for context menu actions

Supported Databases

Database Status
MySQL ✅ Full support
PostgreSQL ✅ Full support
Redis 🔜 Planned
SQLite 🔜 Planned
MongoDB 🔜 Planned

Architecture

VSDB uses a dual-process architecture for stability:

┌─────────────────────────────────────┐
│ VSCode Extension Host               │
│   - UI (TreeView, Webview)          │
│   - Connection Management           │
│   - IPC Messaging                   │
└─────────────────┬───────────────────┘
                  │ IPC (child_process)
┌─────────────────┴───────────────────┐
│ Worker Process                      │
│   - Database Drivers                │
│   - Query Execution                 │
│   - Schema Inspection               │
└─────────────────────────────────────┘

Benefits:

  • Database operations isolated from VSCode
  • Auto-recovery from crashes
  • Non-blocking UI during heavy queries

Configuration

Connection files are stored in:

  • Project-level: .vsdb/connections.json
  • Global: ~/.vsdb/connections.json

Passwords are encrypted in VSCode SecretStorage.

Development

# Watch mode for extension
npm run watch

# Build webview UI
cd webview-ui && npm run build

# Run tests
npm run test

# Package extension
vsce package

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

MIT License

Issues & Feedback

Report bugs or request features at GitHub Issues.


Enjoy managing your databases in VSCode! 🎉

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft