Inline SQL installs statistics
By qufiwefefwoyn (2 listings) · VS Code Marketplace · Linters
Highlight and lint SQL strings and SQL files. Python, Go, Rust, JS, TS, Ruby, Java, C#, PHP, Lua.
Inline SQL has 341,997 recorded installs on VS Code Marketplace, ranking #1063 of 2,501 tracked listings.
Rating: 3.79 / 5 from 14 ratings
About Inline SQL
Inline SQL 
Also available in Open VSX Registry

Highlight and lint inline SQL strings. Supported languages are Python, Go, JavaScript, TypeScript, Ruby, Java, C#, Rust, PHP, Lua.
Syntax highlighting works for strings starting with --sql or any of
the SELECT, INSERT, INTO, DELETE, UPDATE, CREATE TABLE.
Also works with ES6 Template Strings:
const query = sql`
select * from book;
`;
Linting and diagnostics powered entirely by awesome
joereynolds/sql-lint and works for
multiline strings that start with either <code>`--sql</code> (backtick followed by --sql),
"--sql or """--sql.
Contributors
<!-- readme: contributors -start --> <table> <tr> <td align="center"> <a href="https://github.com/jwhitaker-swiftnav"> <img src="https://avatars.githubusercontent.com/u/113399675?v=4" width="100;" alt="jwhitaker-swiftnav"/> <br /> <sub><b>jwhitaker-swiftnav</b></sub> </a> </td> <td align="center"> <a href="https://github.com/Wild-W"> <img src="https://avatars.githubusercontent.com/u/39774593?v=4" width="100;" alt="Wild-W"/> <br /> <sub><b>Connor Bren</b></sub> </a> </td> <td align="center"> <a href="https://github.com/tamasfe"> <img src="https://avatars.githubusercontent.com/u/25967296?v=4" width="100;" alt="tamasfe"/> <br /> <sub><b>Ferenc Tamás</b></sub> </a> </td> <td align="center"> <a href="https://github.com/nossrannug"> <img src="https://avatars.githubusercontent.com/u/416906?v=4" width="100;" alt="nossrannug"/> <br /> <sub><b>Gunnar Sv Sigurbjörnsson</b></sub> </a> </td> <td align="center"> <a href="https://github.com/JonathanWolfe"> <img src="https://avatars.githubusercontent.com/u/1449779?v=4" width="100;" alt="JonathanWolfe"/> <br /> <sub><b>Jon Wolfe</b></sub> </a> </td> <td align="center"> <a href="https://github.com/titouancreach"> <img src="https://avatars.githubusercontent.com/u/3995719?v=4" width="100;" alt="titouancreach"/> <br /> <sub><b>Titouan CREACH</b></sub> </a> </td></tr> </table> <!-- readme: contributors -end -->Safety
The proper way to sanitize data for insertion into your database is to use placeholders for all variables to be inserted into your SQL strings. In other words, NEVER do this (Python example):
query = f"INSERT INTO foo (bar, baz) VALUES ( {variable1}, {variable2} )";
Instead, use $ placeholders (or ? in some databases):
query = "INSERT INTO foo (bar, baz) VALUES ( $1, $2 )";
And then pass the variables to be replaced when you execute the query. For example with pgx (Go example):
err = conn.QueryRow(
context.Background(),
"select name, weight from widgets where id=$1",
42,
).Scan(&name, &weight)
Integration with real database
Integration with real database is available and controlled through VSCode options:
{
"inlineSQL.enableDBIntegration": true,
"inlineSQL.dbDriver": "postgres",
"inlineSQL.dbHost": "localhost",
"inlineSQL.dbPort": 5432,
"inlineSQL.dbUser": "postgres",
"inlineSQL.dbPassword": "postgres"
}
Examples
Python

JavaScript/TypeScript

Go


Limitations
Semantic highlighting
Highlighting does not work with semantic token highlighting enabled (feature provided by some LSP servers).
Currently gopls semantic token highlighting (option gopls.ui.semanticTokens - off by default)
overrides extension's syntax.
gopls
{
"gopls.ui.semanticTokens": false
}
rust-analyzer
{
"rust-analyzer.highlighting.strings": false
}
C#
{
"csharp.semanticHighlighting.enabled": false
}
Motivation
This small extension is meant to help those who don't use ORM and don't like SQL builders like squirrel, but still want inline sql in their code to be something more than magic strings, helping to avoid small bugs and typos almost instantly.
Related…
Description from the VS Code Marketplace listing.
- c#
- csharp
- go
- inline
- java
- javascript
- lint
- linters
- lua
- mysql
- php
- postgres
- python
- ruby
- rust
- sql
- typescript
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (5)Similar VS Code Marketplace Linters plugins
All 20 Inline SQL alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=qufiwefefwoyn.inline-sql-syntax. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.