Re:Sqlfluff the SQL Linter for Humans
by janto on Thursday October 07, 2021 @06:35AM
(#28784520)
The only thing I require from an SQL formatter is to make typos and boolean mistakes super easy to spot, especially as it grows in size. At first glance it might seem strange, but I like indentation on even the first term of an AND.
Yes, that's a lot of whitespace, but it helps for complex queries.
[ Parent
| on HN ]
Re:Sqlfluff the SQL Linter for Humans
by marcosdumay on Thursday October 07, 2021 @10:22AM
(#28786628)
Well, there's an inherent conflict between making individual queries easier to read and making your entire code easier to read.
How much whitespace you need is completely dependent on what exactly you are writing.