PackageTrack
Sign in Get early access

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
Release Pre-release Withdrawn

Releases

latest 25
  1. 0.5.0 09 Oct 2025
    Release notes
    • 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)
    Open source →
  2. 0.4.0 17 Sep 2025
    Release notes
    • 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> WHEN correctly (#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)
    Open source →
  3. 0.3.5 13 Jan 2025
    Release notes
    • Support pg_trgm operators
    • Remove usage of a deprecated winnow function
    Open source →
  4. 0.3.4 07 Jan 2025
    Release notes
    • Migrate from nom to winnow, provides about 30% performance improvement
    Open source →
    Release notes
    • Migrate from nom to winnow, provides about 30% performance improvement
    Open source →
  5. 0.3.3 11 Dec 2024
    Release notes
    • Reduce binary size by removing regex dependency (#68)
    Open source →
    Release notes
    • Reduce binary size by removing regex dependency (#68)
    Open source →
  6. 0.3.2 22 Nov 2024
    Release notes
    • support ClickHouse/DuckDB join variants
    • handle double colons better
    Open source →
  7. 0.3.1 05 Nov 2024
    Release notes
    • Allow latest regex version (#55)
      • [slightly breaking] Increases minimum Rust version to 1.65
    • Fixes for operator parsing (#57)
    • Performance improvements (#58)
    Open source →
  8. 0.3.0 05 Oct 2024
    Release notes
    • [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)
    Open source →
    Release notes
    • [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)
    Open source →
  9. 0.2.7 04 Oct 2024 withdrawn

    Nothing published for this version

  10. 0.2.6 06 Sep 2024
    Release notes
    • fix: ON UPDATE with two many blank formatted incorrectly (#46)
    • fix: EXCEPT not 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)
    Open source →
    Release notes
    • fix: ON UPDATE with two many blank formatted incorrectly (#46)
    • fix: EXCEPT not 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)
    Open source →
  11. 0.2.5 06 Sep 2024 withdrawn

    Nothing published for this version

  12. 0.2.4 12 Jun 2024
    Release notes
    • Remove itertools dependency #34
    Open source →
  13. 0.2.3 06 Dec 2023
    Release notes
    • Allow alphanumeric characters in SQLite style parameters #32
    • Format "begin" and "declare" for PLPgSql #30
    • Allow scientific notation with or without "+"/"-" #31
    • Treat "$$" as a reserved token that sits on its own line #29
    • Bump itertools to version 0.12 #28
    Open source →
  14. 0.2.2 04 Sep 2023
    Release notes
    • Fix a performance issue where the tokenizer would run in O^2 time #24
    Open source →
  15. 0.2.1 13 Jan 2023
    Release notes
    • Fix extra spaces inside of scientific notation #16
    • Remove unnecessary space in BETWEEN clause #17
    • Denote the minimum Rust version in Cargo.toml
    Open source →
  16. 0.2.0 05 May 2022
    Release notes
    • Fix extra spaces in string escaping #13
    • Fix panic on overflowing integer #14
    • Bump Rust edition to 2021
      • This is technically a breaking change as it bumps the minimum Rust version to 1.56
    Open source →
  17. 0.1.8 12 Sep 2021
    Release notes
    • Remove regex dependency
    • Remove unused maplit dependency
    Open source →
  18. 0.1.7 25 Aug 2021
    Release notes
    • Bump nom to 7.0, which reportedly also fixes some build issues
    Open source →
  19. 0.1.6 28 Feb 2021
    Release notes
    • Fix compatibility with Rust 1.44 which was broken in 0.1.5
    Open source →
  20. 0.1.5 20 Nov 2020
    Release notes
    • Fix a possible panic on multibyte unicode strings
    Open source →
  21. 0.1.4 16 Nov 2020
    Release notes
    • Attempt again to fix the issue some users experience where this crate would fail to compile
    Open source →
  22. 0.1.3 15 Nov 2020
    Release notes
    • Fix an issue some users experienced where this crate would fail to compile
    Open source →
  23. 0.1.2 15 Nov 2020
    Release notes
    • Rewrite the parser in nom, providing significant performance improvements across the board
    • Other significant performance improvement on pathological queries
    Open source →
  24. 0.1.1 13 Sep 2020
    Release notes
    • Significant performance improvements
    Open source →
  25. 0.1.0 18 Apr 2020
    Release notes
    • Initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive