Preparing for system design interviews?  Try bugzed.com →

prettier-plugin-sql-cst

JSON →
library 0.19.3 ·javascript
verified Jun 17, 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 11
actors 4 distinct systems
last hit 16d ago AhrefsBot
GPTBot
4
ChatGPT-User
2
Script
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇧🇪 Belgium · 🇰🇷 South Korea