django-sql-dashboard icon indicating copy to clipboard operation
django-sql-dashboard copied to clipboard

Consider optional integration with SQLFluff

Open toolness opened this issue 4 years ago • 1 comments

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!

toolness avatar Jun 09 '21 02:06 toolness

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.

simonw avatar Jun 10 '21 16:06 simonw