SQL Query Formatter
Install latest/stable of SQL Query Formatter
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Install using the command line
sudo snap install sql-query-formatter
Don't have snapd? Get set up for snaps.
Details for SQL Query Formatter
Package name
- sql-query-formatter
License
- MIT
Last updated
- Yesterday - latest/stable
Report a Snap Store violation
Report SQL Query Formatter for a Snap Store violation
Snap Store Violation Report submitted successfully
Thank you for your report. Information you provided will help us investigate further.
Error submitting report
There was an error while sending your report. Please try again later.
Share this snap
Generate an embeddable card to be shared on external websites.
SQL query formatter, DDL schema ER diagram studio, and vector/PDF exporter
SQL Query Formatter is a desktop SQL tokenizer, pretty-printer, DDL Entity-Relationship diagram studio, and vector/document exporter for Linux developers and database engineers. Format complex multi-CTE SELECT queries, joins, CASE expressions, DML statements, and CREATE TABLE DDL locally on your desktop without uploading schemas to external services.
Key Features:
- SQL Tokenizer & Pretty-Printer: Pure-Python SQL lexer and formatter supporting SELECT, WITH CTEs, JOINs, CASE expressions, INSERT, UPDATE, and CREATE TABLE with UPPER/lower/Title keyword casing, configurable indent width, trailing or comma-first style, dialect awareness, syntax highlighting, and compact Minifier.
- Visual ER Diagram Studio: Parses CREATE TABLE DDL (PRIMARY KEY, FOREIGN KEY REFERENCES) into an interactive, draggable, auto-laid-out Entity-Relationship diagram rendered with QPainter featuring table cards, PK/FK badges, and crow's-foot relationship connectors.
- Schema & Diagram Exporter: Exports formatted .sql scripts, standalone vector SVG diagrams, high-DPI PNG renders, and print-ready vector PDF documents via QPdfWriter.
Disclaimer: SQL Query Formatter is an independent open-source project by TC Studio and is not affiliated with, endorsed by, or sponsored by any third-party database formatting vendor.
| Revision | Channel | Version | Build | Commit | Download SBOM |
|---|
The build and commit information is derived from build infrastructure records.
Install SQL Query Formatter on your Linux distribution
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.