- SQL
- SQL language support for Nova editor — Tree-sitter syntax highlighting, code folding, and completions for multiple dialects.
- 12 Installs
Readme
SQL Language Extension for Nova
Provides advanced SQL syntax highlighting and editing support in Nova using Tree-sitter SQL.
Tree-sitter Parser
This extension uses the Tree-sitter SQL parser by Derek Stride for precise and performant syntax highlighting and code folding.
Supported SQL Dialects
- Generic SQL
- MySQL / MariaDB
- PostgreSQL
- SQLite
- T-SQL
- PL/SQL
- N1QL
- Trino
- Redshift
- SingleStore
- Snowflake
- SparkSQL
Recognized File Extensions
The extension automatically recognizes files with these extensions:
.sql, .ddl, .tsql, .psql, .pgsql, .mysql, .hqsql, .hql, .q,
.pls, .bdy, .fnc, .pck, .pkb, .pks, .plb, .plsql, .prc, .spc, .tpb, .tps, .trg, .vw,
.db2, .db2i, .cql, .inc, .tab, .udf, .viw,
.sqlite, .sqlite3, .bq, .bigquery,
.sf.sql, .rs.sql, .trino.sql, .singlestore.sql,
.spark.sql, .flink.sql, .flinksql, .n1ql, .mariadb.sql
This ensures seamless integration with your existing SQL files without additional configuration.
Changelog
1.2.1 – 2025-04-26
Fixed
- Corrected syntax name from
hivesql
->hiveql
1.2.0 – 2025-04-25
Added
- Dialect-aware completions: split SQL completion into a pure ANSI-generic provider plus per-dialect providers for SQLite, HiveQL, BigQuery, Snowflake, Redshift, Trino, SingleStore, SparkSQL, FlinkSQL and N1QL
- Vendor-specific sets: extracted all non-ANSI keywords, data types and
functions into their own
<set>
blocks - Syntax-triggered loading: each provider now only fires for its
<syntax>
(e.g.mysql
,postgresql
,tsql
, etc.)
Changed
- Renamed generic provider to
sql-generic
and pruned it to true ANSI-SQL (SQL:2016) only - Removed MySQL/PostgreSQL/Oracle extras from ANSI core sets
Fixed
- Ensured
WHEN
,THEN
,ELSE
and other ANSI CASE keywords are available in generic completions
1.1.1 – 2025‑04‑25
Added
- added
WHERE
keyword to completions
1.1.0 – 2025‑04‑25
Changed
- Refined injection handling for better embedded language support
- Added dialect-specific indentation rules for improved formatting consistency
Initial release
1.0.0 – 2025‑04‑24
Initial release
License
MIT License
Copyright (c) 2025 Toni Förster
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.