maddyblue / sqlfmt

SQL formatter with width-aware output
https://sqlfum.pt
Apache License 2.0
418 stars 23 forks source link

Extensions #52

Closed jawj closed 4 years ago

jawj commented 4 years ago

Hi there. This formats beautifully, but I have trouble using it with PostGIS (e.g. it doesn't like the distance operator, <->). Is there any way it could be made a bit more flexible? Perhaps it could take some kind of supplementary list of operators/keywords etc, and possibly some hints about how to deal with them??

maddyblue commented 4 years ago

Sadly this is not going to happen. sqlfmt is completely tied to cockroach's source, and we have decided to not extend the cockroach grammar to add sqlfmt features like this.

jawj commented 4 years ago

Ah, OK. Thanks for the quick and clear reply, at least.