vscode-database-client

cweijanMIT更新放缓

VS Code 里的数据库客户端插件,支持 MySQL 等数据库的连接、SQL 查询和表数据管理,省去在编辑器和数据库工具之间来回切换。

Database Client For Visual Studio Code

4.7.0发布于 2022-02-26 07:52 UTC2,927star384fork同步于 2026-11-07 07:32 UTC

怎么上手

由 README 提炼,执行前请确认
在 VS Code Marketplace 或 Open VSX 搜索并安装扩展 cweijan.vscode-mysql-client2
硬件要求按 README 说明

README 未说明硬件要求,作为 VS Code 扩展运行在本地编辑器环境中

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

VS Code 里的多数据库客户端扩展,一个面板管理 MySQL、PostgreSQL、Redis 等并兼作 SSH 客户端

VS Code 里的数据库客户端插件,支持 MySQL 等数据库的连接、SQL 查询和表数据管理,省去在编辑器和数据库工具之间来回切换。

核心能力

  • 在 Database Explorer 面板统一连接 MySQL/MariaDB、PostgreSQL、SQLite、Redis、ClickHouse、达梦、ElasticSearch
  • 提供绑定数据库的 SQL 编辑器,支持 IntelliSense 与 sel/del/ins/upd/joi 片段
  • Ctrl+Enter 执行选中或光标处 SQL,Ctrl+Shift+Enter 执行全部 SQL
  • 表视图内直接修改数据,右键菜单做导入导出与备份
  • 内置查询历史记录与 Mock 测试数据生成

容易踩的坑

仓库为早期源码,新版本已闭源,功能与文档可能和商店版本不一致;扩展默认收集匿名使用数据,可用 database-client.telemetry.usesOnlineServices 关闭;数据库结构被外部修改后需点刷新按钮清缓存;内置备份功能不够稳定,建议把 mysql_dump 或 pg_dump 加入环境变量

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

1 个版本4.7.0
  1. 4.7.0Database Client 4.7.0最新正式版2022-02-26 · 2022-02-26 07:52 UTC

    4.7.0 2022-2-26

    • Access to the paid system, now the free use connection and some function(export, ftp) will be limited.

    • new:

      • Support connect to ftp server.
      • Better design for message notice.
      • Support insert data by dialog.
    • Enhance:

      • Detection of columns containing keywords.
      • Get result lock state when open result view.
      • Mock data config support remove unnecessary columns.
    • fix:

      • Design table not chekc keyword and not refresh column cahce.
      • Old version connection refresh not work.
      • Create ssh tunnel fail when has multiple ssh tunnel.
      • SFTP copy path fail.
      • Count sql did not remove group by clause.
      • Result view filter multi column fail.

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Database Client

    This repository contains the early source code. The new version is closed source.

    This project is a database client for Visual Studio Code, supporting the management MySQL/MariaDB, PostgreSQL, SQLite, Redis, ClickHouse, 达梦, and ElasticSearch, and works as an SSH client, boost your maximum productivity!

    Project site: vscode-database-client, 中文文档

    Logo

    Installation

    Install from the Visual Studio Code Marketplace or Open VSX.

    Telemetry Reporting

    The Database Client extension will collects and sends anonymous usage data to the Database Client server to help improve our products and services. Read our Privacy Statement to learn more.

    Telemetry reporting follows the telemetry settings of VS Code. Additionally, you can independently disable it by setting "database-client.telemetry.usesOnlineServices": false.

    Connect

    1. Open Database Explorer panel, then click the + button.
    2. Select your database type, input connection config then click the connect button.

    connection

    Table

    1. Click table to open table view.
    2. Click button beside table to open new table view.
    3. Then you can do data modification on the table view.

    query

    Execute SQL Query

    In the Database Explorer panel, click the Open Query button.

    newquery

    That will open a SQL editor bind of database, it provider:

    1. IntelliSense SQL edit.
    2. snippets:sel、del、ins、upd、joi...
    3. Run selected or current cursor SQL (Shortcut : Ctrl+Enter).
    4. Run all SQL (Shortcut : Ctrl+Shift+Enter, Command ID: mysql.runSQL).

    run

    The database can be searched by clicking the search button to the right of "Tables".

    1708594027208

    Cache

    In order to improve performance, the database information is cached. If your database structure changes externally, you need to click the refresh button to refresh the cache。

    Backup/Import

    Move to ant DatabaseNode or TableNode. The export/import options are listed in the context menu (right click to open).

    The extension implements the backup function, but it is not stable enough. You can add mysql_dump or pg_dump to the environment variable, and the extension will use these tools for backup.

    bakcup

    Setting

    The extension provides some settings, you can refer to the following operations to go to the console settings.

    1708593458624

    Generate Mock Data

    You can easily generate test data.

    mockData

    History

    Click the history button to open the list of recently executed query history records.

    history

    Credits