- Open Database Explorer panel, then click the
+
button. - Select your server type, input connection config then click the connect button.
This extension will create two panels, because in some cases it is necessary to view both SQL and NoSQL data.
If you don't need nosql, you can drag it by long press.
- Clicking on the data table node in the tree view will open the data view.
- Then you can do data modification on the data view.
- The total number of data is displayed next to the table, which is not accurate, but can be used to determine the data volume level of the table.
In the Database Explorer panel, click the Open Query
button.
That will open a SQL editor bind of database, it provider:
- IntelliSense SQL edit.
- snippets:
sel、del、ins、upd、joi, selc
... - Run selected or current cursor SQL (Shortcut : Ctrl+Enter).
- Run all SQL (Shortcut : Ctrl+Shift+Enter).
There are two ways to modify table meta information
- Right-click on the table, select Design Table, you can open the design table interface to view the columns and indexes of the table (currently only MySQL has high support)
- Expand the table node directly, click the column node and edit it directly by SQL.
Right-click on a table or database node, and you can backup and restore data through the menu.
The extension has a built-in backup function, but it is not perfect. When your environment variable has mysql_dump or pg_dump, the extension will use These tools make backups.
Since version 5.0, Redis backup and restore is supported, and two formats JSON and JSON Lines are available, JSON Lines recommended for large data.