Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>Bancada — Database ManagerNew to Visual Studio Code? Get it now.
Bancada — Database Manager

Bancada — Database Manager

TSilvas1712

| (0) | Free
Database client for MySQL, MariaDB, PostgreSQL, SQL Server, SQLite, MongoDB and Redis, with connections saved per project. Gerenciador de bancos de dados com conexões por projeto.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Bancada — Database Manager

A database client for VS Code with connections saved per project. Browse schemas, write queries in consoles and explore results in a grid, without leaving the editor.

Supported databases: MySQL · MariaDB · PostgreSQL · SQL Server · SQLite · MongoDB · Redis

🇧🇷 Leia em português

Features

  • Database explorer in the sidebar
    • SQL: databases/schemas → tables & views → columns (type, primary key, default)
    • MongoDB: databases → collections → indexes
    • Redis: db0…dbN → keys with their type
  • Per-project connections in .vscode/database.json. Commit it and your team gets the same connections; each person types their own password once.
  • Passwords never touch files. They live in the OS keychain (Windows Credential Manager, macOS Keychain, libsecret).
  • Global connections, groups (e.g. "Production") and a color per connection.
  • Detect from .env: Laravel DB_*, DATABASE_URL, MONGODB_URI, REDIS_URL / REDIS_HOST, POSTGRES_*.
  • Consoles that persist per workspace (outside your repository). Any .sql, .redis or .js file can be attached to a connection.
    • Ctrl+Enter runs the selection or the statement under the cursor; Ctrl+Shift+Enter runs the whole file.
    • SQL autocomplete for tables and columns, including alias.column.
    • MongoDB shell syntax: db.users.find({ age: { $gt: 18 } }).sort({ name: 1 }), db.getCollection('x'), ObjectId(), ISODate(), or a script with await / return.
    • Redis: one command per line, like redis-cli.
  • Results grid in the bottom panel: one tab per statement, sorting, filtering, paging, copy cell (Ctrl+C), double-click to open the full value (pretty JSON), export to CSV / JSON.
  • View data of a table, collection or key with one click.
  • Works with Remote – WSL, SSH and Dev Containers: it runs next to your project, so localhost and SQLite paths just work.

Getting started

  1. Open the Bancada view in the activity bar.
  2. Click New connection (or Detect from .env), fill the form, Test connection, Save.
  3. Click the terminal icon on a connection to open a console, write a query and press Ctrl+Enter.

.vscode/database.json

{
  "connections": [
    { "id": "local", "name": "Local", "type": "mysql", "host": "127.0.0.1", "port": 3306, "user": "root", "database": "app" },
    { "id": "cache", "name": "Redis", "type": "redis", "host": "localhost", "port": 6379 },
    { "id": "atlas", "name": "Atlas", "type": "mongodb", "url": "mongodb+srv://app:<password>@cluster0.example.net/shop", "group": "Production", "color": "charts.red" },
    { "id": "dev", "name": "SQLite", "type": "sqlite", "file": "database/database.sqlite" }
  ]
}

Use <password> in connection strings; the real password is asked once and kept in the keychain.

Settings

Setting Default Description
bancada.maxRows 1000 Maximum rows fetched per query
bancada.openDataLimit 200 Row limit used by View data
bancada.pageSize 100 Rows per page in the results grid

Português

Bancada é um gerenciador de bancos de dados para o VS Code com conexões salvas por projeto.

  • Árvore de bancos, tabelas, colunas, coleções do MongoDB e chaves do Redis.
  • Conexões em .vscode/database.json, que pode ir para o git. As senhas ficam no cofre do sistema, nunca em arquivo.
  • Detectar no .env: lê o .env do Laravel e variáveis como DATABASE_URL e MONGODB_URI.
  • Consoles com Ctrl+Enter, autocomplete de SQL, sintaxe do shell do MongoDB e comandos do Redis.
  • Grade de resultados com ordenação, filtro, paginação e exportação para CSV/JSON.
  • Funciona no WSL, SSH e Dev Containers.

Dica para Laravel com Docker/Sail: se o .env usa DB_HOST=mysql, troque o host da conexão por 127.0.0.1.

Development

npm install
npm run build        # dist/extension.js + dist/smoke.js
npm run typecheck
node dist/smoke.js   # driver tests outside VS Code (SQLite always; others via env vars)
MYSQL=root:pw@localhost:3306 PG=postgres:pw@localhost:5432 MONGO=mongodb://localhost:27017 REDIS=localhost:6379 node dist/smoke.js
npm run package      # builds the .vsix

Press F5 in VS Code to launch an Extension Development Host.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft