sql-formatter
sql-formatter copied to clipboard
Feature Request: Support for sqlc
Describe the Feature SQLc uses custom non-standard sql that is converted to sql after embedding into a .go file.
Sql-formatter formats these macros incorrectly.
https://docs.sqlc.dev/en/latest/reference/macros.html
Why do you want this feature? sqlc attempts to use plain sql files to generate type checked embedded sql queries for mysql, postgres & sqlite. I've found sql-formatter pretty handy except for this one issue.
See this issue for a workaround: https://github.com/sql-formatter-org/sql-formatter/issues/861