#sql

sqlformat

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

9 releases

0.1.8 Sep 12, 2021
0.1.7 Aug 25, 2021
0.1.6 Feb 28, 2021
0.1.5 Nov 20, 2020
0.1.0 Apr 18, 2020

#55 in Development tools

Download history 21129/week @ 2021-08-16 20824/week @ 2021-08-23 23237/week @ 2021-08-30 24941/week @ 2021-09-06 29259/week @ 2021-09-13 27548/week @ 2021-09-20 26926/week @ 2021-09-27 25875/week @ 2021-10-04 28455/week @ 2021-10-11 28129/week @ 2021-10-18 25203/week @ 2021-10-25 26667/week @ 2021-11-01 26984/week @ 2021-11-08 27973/week @ 2021-11-15 20337/week @ 2021-11-22 23091/week @ 2021-11-29

100,033 downloads per month
Used in 198 crates (10 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
~28K SLoC

/>a