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

Add support for Postgresql JSON and JSONB data types #831

Conversation

forsstromerik
Copy link
Contributor

Hey there,

I noticed some data types in where missing in postgres.keywords.ts. There is a comment in that file linking to the official documentation: https://www.postgresql.org/docs/current/datatype.html.

We are using the JSONB data type in our project so I thought I would add support for JSON + JSONB in this pull request. There might be more types needed to be added, but for now I thought I'd add these that I knew where missing.

Please let me know if there is anything else I should do to get this pull request merged.

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@nene nene merged commit 672cd30 into sql-formatter-org:master Feb 22, 2025
2 checks passed
@nene
Copy link
Collaborator

nene commented Feb 22, 2025

Thanks! Much appreciated.

@nene
Copy link
Collaborator

nene commented Feb 22, 2025

Released in 15.4.11

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

Successfully merging this pull request may close these issues.

2 participants