You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, this syntax is weird; unfortunately, it's generated by pg_dump in some cases, so my scripts that pipe schema dump through sql-formatter are failing.
The text was updated successfully, but these errors were encountered:
innermatrix
changed the title
Failure on schema-qualified special OPERATOR in PostgresQL
Failure on schema-qualified special OPERATOR in PostgreSQL
Jan 30, 2024
That's definitely a tricky bit of syntax to handle.
You might be interested in trying out prettier-plugin-sql-cst. It doesn't yet have a full PostgreSQL support, but it does handle the OPERATOR() syntax.
I can thing of several hacks to fix this issue in sql-formatter. Will have to figure out which one would be the least hacky way of doing it.
If you know of anything particular that's missing from the current PostgreSQL support in the prettier-plugin-sql-cst, feel free to let me know and I might prioritize that. It will take a while for it to support 100% of Postgres syntax, but most likely something like 10% of it is actually used by most people. But I don't know which 10% :)
Describe the bug
Expected behavior
Useful output
Actual behavior
Failure
Usage
Yeah, this syntax is weird; unfortunately, it's generated by
pg_dump
in some cases, so my scripts that pipe schema dump throughsql-formatter
are failing.The text was updated successfully, but these errors were encountered: