Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres Support #40

Open
9 of 18 tasks
shishkin opened this issue Apr 21, 2023 · 5 comments
Open
9 of 18 tasks

Postgres Support #40

shishkin opened this issue Apr 21, 2023 · 5 comments

Comments

@shishkin
Copy link

shishkin commented Apr 21, 2023

I'm looking forward to this project to support Postgres dialect, so it can unblock Postgres support in the prettier plugin.

Edit: I'm hijacking this issue to track the overall progress of PostgreSQL support:

@karlhorky
Copy link

Would also love to see PostgreSQL support here 🙌 @nene is this something on the mid-term roadmap?

@nene
Copy link
Owner

nene commented Oct 26, 2023

Well, it is sort of on the roadmap since starting working on this whole library. But Postgres being pretty big and complex, just the thought of the task ahead puts me off from starting to implement support for it.

@karlhorky
Copy link

Understood, thanks for the reply. Really appreciate the work that you're doing on both this project and sql-formatter.

I guess there's also not a way to build on existing parsers / existing schema data or use code generation somehow to reduce the implementation complexity here... 🤔

@wolfgangwalther
Copy link

To fully support postgres, it would be good to support psql meta commands (starting with \) and variables (with :), too.

@nene
Copy link
Owner

nene commented Feb 17, 2024

To fully support postgres, it would be good to support psql meta commands (starting with ) and variables (with :), too.

Yep. This is in the plans. But for now I'm concentrating on finishing the support for the actual SQL part.

Another thing to fully support Postgres is having support for PL/pgSQL.

I think both can be implemented as supersets of the base PostgreSQL grammar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants