sqlfmt
sqlfmt copied to clipboard
SQL formatter with width-aware output
Input: ```sql select foo, bar from baz where foo like 'abd%' or foo like 'ada%' escape '!' or foo not like 'abd%' or foo not like 'ada%' escape '!' or...
Would love to use this from with vscode / monaco editor. However it would require an NPM package. Would you be interested in supporting that or have a workaround?
could I use it in my go code with import the packge, IF yes HOW USE IT
Thank you for developing this tool! It works flawlessly for me. Would it be possible to publish this on homebrew as well ?
Installing locally with `go get github.com/mjibson/sqlfmt`, I get the following error: ``` go: downloading github.com/mjibson/sqlfmt v0.4.0 ... go get: github.com/codahale/hdrhistogram@none updating to github.com/codahale/[email protected]: parsing go.mod: module declares its path as:...
ALTER TABLE platform_game DROP COLUMN app_id, MODIFY COLUMN business_id int(10) NOT NULL DEFAULT 0 
This PR removes the ability to customize keyword casing, simplify expressions and change the alignment mode. Instead it proposes just two modes: - the default "compact" mode uses "full" alignment...
It would be great if we can add support for gopherjs so that we can use the formatter in the browser.
This library uses the CockroachDB SQL parser, which effectively limits it to use with just CockroachDB, since CockroachDB lacks significant amounts of SQL support: `WITH RECURSIVE`, `CREATE FUNCTION`, and `CREATE...