sqlformat
Formats whitespace in a SQL string to make it easier to read
0.5.0
63M downloads/mo
#1079 most downloaded on crates.io
shssoichiro/sqlformat-rs
What this package is like to depend on
Last release 10 months ago
09 Oct 2025
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 23 of 23 stable releases
2 versions withdrawn
withdrawn after publishing
6 years old
25 releases · first in 2020
2 releases in the last 12 months
see the full history below
Release timeline
25 releases · Apr 2020 to Oct 2025
2021
2022
2023
2024
2025
2026
Releases
latest 25-
0.5.009 Oct 2025Release notes
Open source →- feat!: Improve array support (#106)
- feat: Add initial debugging capabilities
- feat: Support PostgreSQL row-level locking syntax (FOR UPDATE, FOR SHARE) (#108)
- fix: More inline formatting edge cases (#109)
- fix: Type specifiers after numeric literals (#108)
-
0.4.017 Sep 2025Release notes
Open source →- feat!: More formatting options (#78)
- feat!: More formatting options (#74)
- feat: Consistently space blocks after arguments
- feat: Correctly inline opening parentheses (#100)
- feat: Support more conditionally top level tokens (#99)
- feat: Complex insert support (#90)
- feat: Add fmt for SQLite blob literal
- feat: Uniform the behaviour of block and top-level span options
- fix: Place a whitespace between the array type specifier and a reserved word
- fix: Correctly format array type specifier (#91)
- fix: Format inline
CASE <expression> WHENcorrectly (#86) - fix: Fix formatting WITH as a single line
- fix: Keep the previous tokens per-block
- fix: Improve the inline/columnar combination (#80)
- fix: Consider WITH a top level reserved word
- fix: Fix the span computation and usage
- chore: Upgrade to Winnow 0.7.0 (#79)
-
0.3.513 Jan 2025 -
0.3.407 Jan 2025 -
0.3.311 Dec 2024 -
0.3.222 Nov 2024 -
0.3.105 Nov 2024Release notes
Open source →- Allow latest regex version (#55)
- [slightly breaking] Increases minimum Rust version to 1.65
- Fixes for operator parsing (#57)
- Performance improvements (#58)
- Allow latest regex version (#55)
-
0.3.005 Oct 2024Release notes
Open source →- [breaking] fix: Ignore keywords for uppercase=True (#53)
- fix: uppercase=false does not lowercase the query (#50)
- fix: Possible to provide an escape hatch for expressions (#51)
-
0.2.704 Oct 2024 withdrawnNothing published for this version
-
0.2.606 Sep 2024Release notes
Open source →- fix: ON UPDATE with two many blank formatted incorrectly (#46)
- fix:
EXCEPTnot handled well - fix: REFERENCES xyz ON UPDATE .. causes formatter to treat the remaining as an UPDATE statement
- fix: Escaped strings formatted incorrectly
- fix: RETURNING is not placed on a new line
- fix: fix the issue of misaligned comments after formatting (#40)
Release notes
Open source →- fix: ON UPDATE with two many blank formatted incorrectly (#46)
- fix:
EXCEPTnot handled well - fix: REFERENCES xyz ON UPDATE .. causes formatter to treat the remaining as an UPDATE statement
- fix: Escaped strings formatted incorrectly
- fix: RETURNING is not placed on a new line
- fix: fix the issue of misaligned comments after formatting (#40)
-
0.2.506 Sep 2024 withdrawnNothing published for this version
-
0.2.412 Jun 2024 -
0.2.306 Dec 2023 -
0.2.204 Sep 2023 -
0.2.113 Jan 2023 -
0.2.005 May 2022 -
0.1.812 Sep 2021 -
0.1.725 Aug 2021 -
0.1.628 Feb 2021 -
0.1.520 Nov 2020 -
0.1.416 Nov 2020Release notes
Open source →- Attempt again to fix the issue some users experience where this crate would fail to compile
-
0.1.315 Nov 2020Release notes
Open source →- Fix an issue some users experienced where this crate would fail to compile
-
0.1.215 Nov 2020Release notes
Open source →- Rewrite the parser in nom, providing significant performance improvements across the board
- Other significant performance improvement on pathological queries
-
0.1.113 Sep 2020 -
0.1.018 Apr 2020