3 ms·
The code looks really great [1], very declarative, looks like it should be pretty easy to add better PostgreSQL support. I also wonder if how easy it would be
by munro 5y ago
The code looks really great [1], very declarative, looks like it should be pretty easy to add better PostgreSQL support. I also wonder if how easy it would be to plug it into VS Code, and build in an auto formatter (♥ω♥ ). At a glance it looks like it's parsing AST, which is really hard to find for SQL, so auto formatter could be possible to build from this. I notice SQLite could use some improving too, seems like a great project to coalesce around.
[1] https://github.com/sqlfluff/sqlfluff/blob/main/src/sqlfluff/dialects/dialect_postgres.py https://github.com/sqlfluff/sqlfluff/blob/main/src/sqlfluff/...
- amshank 5y agoAuto-formatter is already built in for some simple violations: https://docs.sqlfluff.com/en/stable/cli.html#sqlfluff-fix https://docs.sqlfluff.com/en/stable/cli.html#sqlfluff-fix
- tunetheweb 5y agoThere already is a VS Code extension for this: https://marketplace.visualstudio.com/items?itemName=dorzey.vscode-sqlfluff https://marketplace.visualstudio.com/items?itemName=dorzey.v... https://github.com/sqlfluff/vscode-sqlfluff https://github.com/sqlfluff/vscode-sqlfluff