News for hackers. Stuff that matters.

Show HN: Webapp to Format SQL Queries for Readability

I wrote https://sql.greatenemy.com/ because I needed a quick way to make app generated SQL statements readable. None of the alternatives I could find quickly via search engine at the time included the following features: dark mode, small and fast, works offline, postgres first, not covered in ads.

It is mostly a wrapper around npm's sql-formatter

https://github.com/greatenemy/sql-sapper

( 2 comments | 4 points | on HN )
Re:Show HN: Webapp to Format SQL Queries for Readability by ryan-duve on Monday December 28, 2020 @12:40PM (#25561189)
This is pretty neat. Thanks for sharing. I can see myself using it when I need to quickly prettify some gnarly queries. My only question is why is the text area limited to the top half of the screen?
Re:Show HN: Webapp to Format SQL Queries for Readability by llagerlof on Monday December 28, 2020 @01:04PM (#25561417)
I liked the formatting style. However I could not make the syntax formatter work and the spaces combo didn't any difference. The indentation always use 4 spaces.