This project is a database client for VSCode to connect to Sema4 AI data server to browse the data sources and execute SQL queries
Project site: vscode-database-client
-
Uninstall previously installed version of the extension.
-
Run the following command
npm install
-
Open the source code in VS Code
-
Open the file src/extension.ts
-
Go to Run And Debug panel in VS Code and click Debug (Or just hit F5).
-
It will open a new VS Code window with the extension enabled.
- Open Database Explorer panel, then click the
+
button. - 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.
- Click table to open table view.
- Click button beside table to open new table view.
- Then you can do data modification on the table view.
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
... - Run selected or current cursor SQL (Shortcut : Ctrl+Enter).
- 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.
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。
Click the history button to open the list of recently executed query history records.
- sql-formatter Sql format lib.
- umy-ui: Result view render.
- ssh2: SSH client.
- Client Lib:
- node-mysql2 : MySQL client.
- node-postgres: PostgreSQL client.
- tedious: SqlServer client.
- ioredis: Redis client.
- vscode-sqlite: SQLite client code reference.