Y
Hacker News
new
|
ask
|
show
|
jobs
by
llimllib
2821 days ago
I'm sad this isn't available as a binary, it's not much use to me as a website.
2 comments
mjibson
2821 days 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
.
link
williamstein
2821 days 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.
link
lopezator
2820 days ago
It simply doesn't work with cockroachdb it throws syntax errors with valid schemas/queries.
link