format-sql icon indicating copy to clipboard operation
format-sql copied to clipboard

AND (and more) on their own line

Open gglanzani opened this issue 10 years ago • 2 comments

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;

gglanzani avatar May 13 '14 12:05 gglanzani

Right now I'm rewriting the whole thing. And after that it will be easily possible to add more styles.

paetzke avatar May 13 '14 12:05 paetzke

Can't wait to try it. Thanks!

gglanzani avatar May 13 '14 14:05 gglanzani