format-sql
format-sql copied to clipboard
AND (and more) on their own line
Would it possible to have a switch to have the example in the README parsed like this
SELECT
country,
product,
SUM(profit)
FROM
sales
LEFT JOIN x ON -- note the difference here
x.id = sales.k -- possibly with more AND's, each AND in its line
GROUP BY
country,
product
HAVING
f > 7
AND -- and here
fk = 9
LIMIT 5;
Right now I'm rewriting the whole thing. And after that it will be easily possible to add more styles.
Can't wait to try it. Thanks!