入力とオプション
選択したダイアレクト向けに SQL を整形します。フォーマッタは SQL をテキストとして解析し、実行は一切行いません。
すべての計算と変換は V8 エンジンまたは WebAssembly によりブラウザ内でローカルに実行されます。ファイルやテキストがデバイスの外に出ることはありません。
概要
One keyword per line, consistent indentation, aligned commas — the sql-formatter library does this properly for a dozen dialects, including keyword casing and parameter placeholders. Your SQL is parsed as text and never executed anywhere.
使い方
形式と仕様
FAQ
Which dialects are supported?
Standard SQL plus PostgreSQL, MySQL, MariaDB, SQLite, BigQuery and T-SQL, each with dialect-correct keyword handling.
Does it execute my query?
Never. The formatter works on the text only; there is no database connection of any kind.
What if my query fails to parse?
The library's error message is shown verbatim, which usually points at the offending token.
Is stored-procedure syntax supported?
Partially — procedural blocks differ per dialect and are formatted best-effort.
制限事項
- Highly procedural code (PL/SQL blocks, T-SQL cursors) is formatted best-effort.
- Comments are preserved but not re-indented intelligently.
- No SQL linting or execution-plan analysis.