Databse aware DBT Language Server
Project description
DBT-Language-Server
Features
| Feature | LSP method / command | Description |
|---|---|---|
| Model completion | textDocument/completion |
Suggests dbt models inside ref('...') |
| Source completion | textDocument/completion |
Suggests sources inside source('...'), auto-inserting the source_name, table pair |
| Column completion | textDocument/completion |
Suggests columns for an aliased model/source (alias.<column>), with the column's data type shown as a detail. |
| Go to definition | textDocument/definition |
Jumps from ref('model') to that model's .sql file. |
| Database enrichment | on initialize |
Reads column names and data types for models directly from the connected warehouse. |
| Catalog enrichment | on initialize |
Reads source column info from target/catalog.json when available. |
| Profile resolution | on initialize |
Locates the dbt profile, resolves the active target |
| Auto project discovery | on initialize |
Finds the dbt project root by locating dbt_project.yml (ignoring target/). |
| Project reload | dbt-ls.reload command |
Re-discovers models, sources, and re-runs enrichment without restarting the server. |
| Current model info | dbt-ls.current_model command |
Returns the dbt project root and the model's execution path for the current file. (Can be used to run models) |
Installation
uv tool install dbt-ls
Configuration
vim.lsp.config("dbt_ls", {
cmd = { "dbt-ls" },
filetypes = { "sql" },
root_markers = { "dbt_project.yml" },
})
vim.lsp.enable("dbt_ls")
Supported backends
- DuckDB
- SQL Server / MSSQL
- PostgreSQL
- MySQL
Install each version with
uv tool install dbt-ls[duckdb]
or all supported backends with
uv tool install dbt-ls[all]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dbt_ls-0.2.1.tar.gz
(131.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dbt_ls-0.2.1-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file dbt_ls-0.2.1.tar.gz.
File metadata
- Download URL: dbt_ls-0.2.1.tar.gz
- Upload date:
- Size: 131.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9038c0b9725766a3590df6235214d0152e014d7bb919050a31c4a5800d3ff81d
|
|
| MD5 |
32938806b4fc2e976be5da2edf04c5a9
|
|
| BLAKE2b-256 |
485c556346c416148720892849982d0d7251bb14b46930401682d9ed5ea44844
|
File details
Details for the file dbt_ls-0.2.1-py3-none-any.whl.
File metadata
- Download URL: dbt_ls-0.2.1-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfc4829e33b365d704fd0c292a9c3b2df2ba18ef7158f9af0c1759f2071185ea
|
|
| MD5 |
b419d5bdb79df5a020129d186442b73a
|
|
| BLAKE2b-256 |
e623a2972a5622fe9bc1c326724e6747d562fadcf8bfaee9e96e16450bb07b6d
|