#sql

sqlformat

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

10 releases

Uses new Rust 2021

0.2.0 May 5, 2022
0.1.8 Sep 12, 2021
0.1.7 Aug 25, 2021
0.1.6 Feb 28, 2021
0.1.0 Apr 18, 2020

#173 in Development tools

Download history 57758/week @ 2022-08-15 55363/week @ 2022-08-22 57592/week @ 2022-08-29 58438/week @ 2022-09-05 64808/week @ 2022-09-12 68208/week @ 2022-09-19 73303/week @ 2022-09-26 73580/week @ 2022-10-03 76719/week @ 2022-10-10 83033/week @ 2022-10-17 83468/week @ 2022-10-24 81554/week @ 2022-10-31 81285/week @ 2022-11-07 87127/week @ 2022-11-14 72646/week @ 2022-11-21 73687/week @ 2022-11-28

319,211 downloads per month
Used in 412 crates (13 directly)

MIT/Apache

97KB
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

~1.5MB
~27K SLoC