This project is a database client for VSCode, supports manager **MySQL/MariaDB, PostgreSQL, SQLite, Redis, ClickHouse, 达梦**, and **ElasticSearch**, and works as an **SSH** client, boost your maximum productivity!
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!
Install from the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=cweijan.vscode-mysql-client2) or [Open VSX](https://open-vsx.org/extension/cweijan/vscode-mysql-client2).
## Installation
## Telemetry Reporting
Install from vscode marketplace [vscode-database-client](https://marketplace.visualstudio.com/items?itemName=cweijan.vscode-mysql-client2).
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](https://database-client.com/#/privacyPolicy) 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
## Connect
1. Open Database Explorer panel, then click the `+` button.
1. Open Database Explorer panel, then click the `+` button.
2. Select your database type, input connection config then click the connect button.
2. Select your database type, input connection config then click the connect button.

Two panels are created because in some cases you need to view both SQL and NoSQL data at the same time, you can drag the panel to the other by long-pressing.
That will open a SQL editor bind of database, it provider:
That will open a SQL editor bind of database, it provider:
1. IntelliSense SQL edit.
1. IntelliSense SQL edit.
2. snippets:`sel、del、ins、upd、joi`...
2. snippets:`sel、del、ins、upd、joi`...
3. Run selected or current cursor SQL (Shortcut : Ctrl+Enter).
3. Run selected or current cursor SQL (Shortcut : Ctrl+Enter).
4. Run all SQL (Shortcut : Ctrl+Shift+Enter).
4. Run all SQL (Shortcut : Ctrl+Shift+Enter, Command ID: `mysql.runSQL`).
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.
The database can be searched by clicking the search button to the right of "Tables".
This extension supports codelen, but does not support stored procedures and functions. If you use them frequently, it is recommended to disable codelen
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。
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。
@ -96,28 +67,19 @@ Move to ant DatabaseNode or TableNode. The export/import options are listed in t
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.
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.
<ahref="https://database-client.com"target="_blank"><imgsrc="./public/logo_dark.png"alt="Logo"style="height: auto !important;width: auto !important;"></a>