nene / prettier-plugin-sql-cst

Prettier SQL plugin that uses sql-parser-cst
https://nene.github.io/prettier-sql-playground/
GNU General Public License v3.0
132 stars 7 forks source link

command usage #18

Closed srqcg closed 9 months ago

srqcg commented 9 months ago

It's perfect! I wonder if we can format the sql file from the command line using a command like 'prettier-a.sql'

nene commented 9 months ago

Just install prettier and use it from command line. This library is just a plugin for prettier. Install it and run like so:

prettier --plugin=prettier-plugin-sql-cst