#sql #sqlx #sqlformat #sql-formatter

sqlformat

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

13 releases

0.2.3 Dec 6, 2023
0.2.2 Sep 4, 2023
0.2.1 Jan 13, 2023
0.2.0 May 5, 2022
0.1.0 Apr 18, 2020

#74 in Development tools

Download history 209270/week @ 2023-11-03 217914/week @ 2023-11-10 202469/week @ 2023-11-17 199264/week @ 2023-11-24 234411/week @ 2023-12-01 232050/week @ 2023-12-08 227121/week @ 2023-12-15 118495/week @ 2023-12-22 168009/week @ 2023-12-29 227010/week @ 2024-01-05 231303/week @ 2024-01-12 251787/week @ 2024-01-19 232219/week @ 2024-01-26 242238/week @ 2024-02-02 254364/week @ 2024-02-09 182013/week @ 2024-02-16

951,859 downloads per month
Used in 906 crates (23 directly)

MIT/Apache

105KB
2.5K SLoC

sqlformat

Build Status unsafe forbidden Version Docs

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.

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

~2MB
~30K SLoC