Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Snowflake automatic SQL formatter #183478

Open
gvanstee opened this issue Jul 28, 2022 · 3 comments
Open

Add Snowflake automatic SQL formatter #183478

gvanstee opened this issue Jul 28, 2022 · 3 comments
Labels
0.kind: packaging request Request for a new package to be added 6.topic: nodejs

Comments

@gvanstee
Copy link

gvanstee commented Jul 28, 2022

Project description
I would like to automatically format SQL code when it is pushed through Github like is commonly done with black for Python. An auto-formatter was found at the Snowflake Labs Github website: GitHub - Snowflake-Labs/snowsql-formatter

Can this software be added to Nix?

Metadata

  • homepage URL:
  • source URL:
  • license: mit, bsd, gpl2+ , ...
  • platforms: unix, linux, darwin, ...
@gvanstee gvanstee added the 0.kind: packaging request Request for a new package to be added label Jul 28, 2022
@dit7ya
Copy link
Member

dit7ya commented Jul 29, 2022

Nixpkgs has https://github.com/sql-formatter-org/sql-formatter as nodePackages.sql-formatter which looks like more maintained (while snowsql-formatter does not have recent commits). Would that work for you?

@gvanstee
Copy link
Author

gvanstee commented Aug 1, 2022

@dit7ya , thank you for your response. I examined the data at the link you shared. The link you shared is probably a better solution, but I would like to see whether this SQL dialect can be added to https://github.com/sql-formatter-org/sql-formatter.

I opened a ticket to explore this: sql-formatter-org/sql-formatter#366.

@primeapple
Copy link

The Snowflake dialect has been merged into sql-formatter within sql-formatter-org/sql-formatter#454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added 6.topic: nodejs
Projects
None yet
Development

No branches or pull requests

4 participants