#sql

sqlformat

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

2 releases

0.1.1 Sep 13, 2020
0.1.0 Apr 18, 2020

#63 in Development tools

Download history 6639/week @ 2020-06-06 5507/week @ 2020-06-13 6412/week @ 2020-06-20 7752/week @ 2020-06-27 9220/week @ 2020-07-04 10492/week @ 2020-07-11 12840/week @ 2020-07-18 9393/week @ 2020-07-25 7225/week @ 2020-08-01 8525/week @ 2020-08-08 6847/week @ 2020-08-15 7168/week @ 2020-08-22 7003/week @ 2020-08-29 6263/week @ 2020-09-05 10067/week @ 2020-09-12 9300/week @ 2020-09-19

36,394 downloads per month
Used in 35 crates (via sqlx-core)

MIT/Apache

71KB
2K 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
~40K SLoC