cmoog / vscode-sql-notebook

Open SQL files as VSCode Notebooks.
https://marketplace.visualstudio.com/items?itemName=cmoog.sqlnotebook
MIT License
132 stars 18 forks source link
database mssql mysql notebook postgresql sql sqlite vscode vscode-extension

VS Code SQL Notebook

Visual Studio Marketplace Installs GitHub Release

Open SQL files in the VS Code Notebook interface. Execute query blocks and view output interactively.

Screen Shot 2021-12-30 at 1 34 19 PM

Features

Usage

Open any .sql file with the Open With menu option. Then, select the SQL Notebook format. Configure database connections in the SQL Notebook side-panel.

Screen Shot 2021-12-30 at 1 30 29 PM

Screen Shot 2021-12-30 at 1 30 39 PM

Screen Shot 2021-12-30 at 1 34 32 PM

FAQ

If the file is stored as a regular .sql file, how are cell boundaries detected?

Cell boundaries are inferred from the presence of two consecutive empty lines.

Note: this can pose issues with certain code formatting tools. You will need to configure them to respect consecutive newlines.