barklan/inline_sql_syntax
barklan/inline_sql_syntax has 72 GitHub stars and 43 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-12 23:23 UTC. Last push 2026-11-02.
Highlight and lint inline SQL strings.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalInline 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 `--sql (backtick followed by --sql),
"--sql or """--sql.
Contributors
|
jwhitaker-swiftnav |
Connor Bren |
Ferenc Tamás |
Gunnar Sv Sigurbjörnsson |
Jon Wolfe |
Titouan CREACH |
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


| Python | JavaScript/TypeScript |
![]() |
![]() |
| Ruby | Java |
![]() |
![]() |
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
- joereynolds/sql-lint - Used for linting.
- joe-re/sql-language-server - SQL Language Server, consider it if you use separate files for sql.
- cmoog/vscode-sql-notebook - Open SQL files as VSCode Notebooks.
- pushqrdx/vscode-inline-html - ES6 Template Strings inline HTML.
관련 프로젝트 살펴보기
Asabeneh/30-Days-Of-Python
30 Days of Python 프로그래밍 챌린지는 Python 프로그래밍 언어를 30일 동안 배우기 위한 단계별 가이드입니다. 이 챌린지는 100일 이상 걸릴 수 있습니다. 자신의 속도에 맞춰 진행하세요. 다음 동영상도 도움이 될 수 있습니다: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,618 스타grafana/grafana
개방적이고 조합 가능한 옵저버빌리티 및 데이터 시각화 플랫폼입니다. Prometheus, Loki, Elasticsearch, InfluxDB, Postgres 등 여러 소스의 메트릭, 로그, 트레이스를 시각화합니다.
77,859 스타redis/redis
실시간 데이터 기반 애플리케이션을 구축하는 개발자에게 Redis는 가장 선호되고, 가장 빠르며, 기능이 가장 풍부한 캐시, 데이터 구조 서버이자 문서 및 벡터 쿼리 엔진입니다.
77,472 스타apache/superset
Apache Superset는 데이터 시각화 및 데이터 탐색 플랫폼입니다.
75,495 스타


