Skip to content

mbtolou/vscode-database-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Database Client for Visual Studio Code

GitHub


The Database Client make your life easy. It supports manager MySQL/MariaDB, PostgreSQL, SQLite, Redis, and ElasticSearch.

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

If this extension is helpful to you, please consider buy author a cup of coffee:

Buy Me A Coffee

Features

Installation

Install from vscode marketplace vscode-database-client.

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. Then you can do data modification on the view page.

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).

Note: The extension is developed using Nodejs. Nodejs does not allow duplicate name attributes, so you need to avoid columns with the same name in your query, otherwise the results will not be displayed in full.

run

This extension supports codelen, but does not support stored procedures and functions. If you use them frequently, it is recommended to disable codelen image

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

This extension contain some setting, can be modified as follows.

image

Note

  1. MSSQL, ClickHouse and MongoDB dit not get higt support and are only recommended for browsing data.
  2. SQL formatter stop maintenance, do not report related issue.

Filter

Used to quickly filter the table, if there is an input box to simplify the search operation, but unfortunately VSCode does not support this function.

filter

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

Packages

No packages published

Languages

  • TypeScript 53.4%
  • CSS 25.3%
  • Vue 12.0%
  • JavaScript 9.3%