Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
llimllib
· 8y ago · 0 comments
I'm sad this isn't available as a binary, it's not much use to me as a website.
Comments
[–]
mjibson
8y ago
It's available as part of the cockroach binary (
https://www.cockroachlabs.com/docs/releases/v2.1.0-beta.2018...
) as a subcommand. And an external contributor has made a more standalone version at
https://github.com/lopezator/sqlfmt
.
[–]
williamstein
8y ago
I searched around and found
https://github.com/jackc/sqlfmt
, which is an older open source project also called sqlfmt, also written in Go. I don't know anything about how they compare.
[–]
lopezator
8y ago
It simply doesn't work with cockroachdb it throws syntax errors with valid schemas/queries.