Settings

Theme

Show HN: Webapp to Format SQL Queries for Readability

4 points by iomcr 5 years ago · 2 comments · 1 min read


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

ryan-duve 5 years ago

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?

llagerlof 5 years ago

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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection