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

Change SQL formatter library #229

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Change SQL formatter library #229

merged 2 commits into from
Nov 14, 2024

Conversation

pgiraud
Copy link
Member

@pgiraud pgiraud commented Nov 14, 2024

As mention in #227 (comment), the sql-formatter doesn't correctly handles reserved keywords when they are used as alias for tables.

After some searching I found an other library which seem to be more popular and doesn't fail when formatting such queries.

Also let the SQL be highlighted even if not formatted.
It is less prone to parsing errors, popular (~2M weekly downloads)
and used in VS code.
@rjuju rjuju merged commit dc6774f into master Nov 14, 2024
1 check passed
@rjuju rjuju deleted the highlight.js_update branch November 14, 2024 23:21
@rjuju
Copy link
Member

rjuju commented Nov 14, 2024

Apparently this is failing during container image build, see https://github.com/powa-team/powa-podman/actions/runs/11847215631/job/33016547131

@pgiraud
Copy link
Member Author

pgiraud commented Nov 15, 2024

Sorry about that. I'll fix that soon.

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