prettier-plugin-sql-cst

JSON →
library 0.19.3 ·javascript
verified May 27, 2026

A Prettier plugin for SQL that uses sql-parser-cst and the actual Prettier formatting algorithm (Wadler-Leijen). It adapts formatting based on expression length, sticking to one style with minimal configuration options. The plugin supports multiple SQL dialects: SQLite, BigQuery, PostgreSQL, MySQL, and MariaDB (some experimental). It parses and formats SQL code inside CREATE FUNCTION/PROCEDURE bodies (PostgreSQL). Current stable version is 0.19.3, with semi-regular releases (every few weeks). TypeScript types are shipped. Key differentiators vs other SQL formatters: uses Prettier's algorithmic line splitting for consistency, preserves syntax elements, and formats embedded languages.

total hits 27
actors 8 distinct systems
last hit 5d ago human
Amazonbot
4
MetaBot
4
GPTBot
2
Script
2
ClaudeBot
1
Search engines
1
Humans
5

top countries 🇺🇸 United States · 🇳🇱 Netherlands · VN · 🇨🇦 Canada · 🇳🇴 Norway