SQLTy vs Inline SQL¶
Both VS Code extensions highlight SQL inside --sql strings. The
Inline SQL
extension highlights it in ten languages and passes each string to the sql-lint library, optionally
with a database connection. SQLTy's extension
(Marketplace,
Open VSX) highlights and type-checks SQL
in Python against your schema files, as you type.
Quick comparison¶
| Inline SQL 2.16 | SQLTy 0.10 | |
|---|---|---|
| Host languages | Python, Go, JS/TS, Ruby, Java, C#, Rust, PHP, Lua, Vue/Svelte | Python, plus .sql query files |
| Highlighting trigger | --sql, or a string starting with SELECT, INSERT INTO and others |
--sql on the first line, including f- and t-strings |
| Offline checks | sql-lint style checks: missing WHERE, unmatched parentheses |
Unknown tables and columns with suggestions, parameters, row types, nullability, UPDATE and DELETE without WHERE |
| Schema awareness | Only with a live database (EXPLAIN) |
Static, from schema files |
| Diagnostic span | The whole string, always an error | The exact token, with the rule's severity and name |
| When | On save | As you type |
| Fixes, completion, hover, go to definition | None | All |
| vscode.dev | Declared, not verified | Bundled WebAssembly engine |
| Database credentials | In settings.json, as plain text |
None needed |
| Last release | 2022 | 2026 |
Where SQLTy is stronger¶
- Real checks without a database. Run against PostgreSQL 16, Inline SQL's database mode
reported
$1and%splaceholders as errors, and never finished for valid queries. - Exact positions and severities, quick fixes, completion and hover.
- Same results as CI, because the extension runs your project's
sqlty server.
Where Inline SQL is stronger¶
- Ten languages. SQLTy highlights
--sqlstrings only in Python for now. - Highlighting without a marker, for strings that start with a SQL keyword.
Which should you choose?¶
Choose Inline SQL if you only want SQL colored inside strings in Go, Ruby, Java or PHP.
Choose SQLTy for Python, when you want those strings checked against your schema.
They can be installed side by side: Inline SQL for the other languages, SQLTy for Python.
What SQLTy is missing¶
--sqlhighlighting in TypeScript, JavaScript, Rust and Go (#1472).- Highlighting strings without a marker.
Common questions¶
Can both extensions be installed?¶
Yes. They run side by side: Inline SQL for the other languages, SQLTy for Python.
Sources¶
- barklan/inline_sql_syntax at 22148f4 (last commit 2022-10-17), Inline SQL 2.16.0, sql-lint 0.0.19
- Database mode run against a local PostgreSQL 16, sqlty 0.9.0 (2026-11-28);
missing-whererechecked with sqlty 0.10.0 (2026-12-01)