#sql-query #sql #query

sqlformat

Formats whitespace in a SQL string to make it easier to read

21 releases

0.3.5 Jan 13, 2025
0.3.3 Dec 11, 2024
0.3.2 Nov 22, 2024
0.2.4 Jun 12, 2024
0.1.0 Apr 18, 2020

#18 in Development tools

Download history 419063/week @ 2024-12-05 450306/week @ 2024-12-12 247273/week @ 2024-12-19 158011/week @ 2024-12-26 354381/week @ 2025-01-02 420652/week @ 2025-01-09 333602/week @ 2025-01-16 359446/week @ 2025-01-23 371192/week @ 2025-01-30 422171/week @ 2025-02-06 420722/week @ 2025-02-13 499647/week @ 2025-02-20 504743/week @ 2025-02-27 510872/week @ 2025-03-06 471255/week @ 2025-03-13 366693/week @ 2025-03-20

1,957,557 downloads per month
Used in 981 crates (35 directly)

MIT/Apache

120KB
3.5K SLoC

sqlformat

Build Status unsafe forbidden Version Docs

This crate is a port of sql-formatter-plus written in Rust. It is intended to be usable as a pure-Rust library for formatting SQL queries.

There is currently no binary interface. This crate was written for formatting queries to logs within sqlx, but it may be useful to other crates in the Rust ecosystem.


lib.rs:

This crate is a port of https://github.com/kufii/sql-formatter-plus written in Rust. It is intended to be usable as a pure-Rust library for formatting SQL queries.

Dependencies

~1.5MB
~34K SLoC