SQL Nav LinkSQL Nav Link bridges your SQL scripts and SQLMesh models with VS Code. It uses an underlying Python engine ( Features
Extension SettingsThis extension contributes the following settings:
Example
|
| Command | Description |
|---|---|
sql-nav-link.parsePaths |
Crawls and parses all configured paths or active workspace folders to update table definitions. |
sql-nav-link.addPath |
Adds a file or folder path to the sidebar Tree View. |
sql-nav-link.removePath |
Removes a selected path item from the sidebar Tree View. |
sql-nav-link.runPythonApp |
Runs the Python app with the current target paths passed via the integrated terminal. |
Getting Started
- Prerequisites: Ensure Python 3.9+ is installed along with the required Python libraries (
sqlglot,sqlmesh,pydantic). - Setup: Open your SQL repository in VS Code.
- Parse Models:
- Open the Command Palette (
Ctrl+Shift+P) and runsql-nav-link.parsePaths. - Alternatively, use the SQL Nav Link sidebar view to add specific folders and trigger path indexing.
- Open the Command Palette (
- Navigate: Open any
.sqlfile, hover over orCtrl+Click(Cmd+Clickon macOS) a table reference to navigate directly to its definition file.
Requirements
- VS Code
1.80.0or higher - Python
3.9+ - Python dependencies:
pip install sqlglot sqlmesh pydantic