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

Consider optional integration with SQLFluff #126

Open
toolness opened this issue Jun 9, 2021 · 1 comment
Open

Consider optional integration with SQLFluff #126

toolness opened this issue Jun 9, 2021 · 1 comment

Comments

@toolness
Copy link
Contributor

toolness commented Jun 9, 2021

Via Podcast.init I learned about a tool called SQLFluff, which appears to be kind of like Black/Prettier/etc, but for SQL.

I frequently have trouble formatting SQL in a way that is readable and consistent, so an auto-formatting approach like this seems like it could be useful. Maybe Django SQL Dashboard could optionally support this tool, e.g. by auto-formatting a saved dashboard's SQL query, and/or via some kind of keyboard shortcut or button or somesuch?

Anyways, just a thought!

@simonw
Copy link
Owner

simonw commented Jun 10, 2021

Oh interesting - I was thinking about adding the JavaScript formatted used by Datasette - see https://latest.datasette.io/fixtures - but I hadn't seen SQLFluff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants