Skip to content

Comment on Show HN: SQL Formatterparent

Comments

clickhouse-format does it better:

    SELECT COUNT(*)
    FROM table
    ;

    SELECT *
    FROM table
    WHERE (frozen_rand >= 123) AND (frozen_rand <= 456)
    ORDER BY RAND() ASC
    LIMIT 1000
    ;
It also has the "obfuscate" option that is useful for test reports.
    clickhouse-format --obfuscate

What does an obfuscate output look like

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.