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

feat: SQL Formatter #63

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

aayushpagare21-compcoder

Hi Team,
I've created a new feature SQL Formatter. If you find this feature useful, please approve the PR. Your feedback is appreciated!

Description:

  • Paste sql query.
  • Select configurations like tabs, indent-style, dialect and case.
  • Click on format and copy the formatted query.
  • If there is any error, error is displayed in place of formatted query.

Changes:

  • Changes in ComboboxComponent to make it generic.
  • Changes done in readme

Tested:

  • Errors handled ✅ .
  • Dialect feature working ✅ .
  • Responsive design ✅ .
  • Changes in ComboboxComponent does not break number-base-changer 's design ✅ .

Additional Notes:
To test the dialect feature, first paste this query it should work as the dialect is postgresql. Change the dialect to mysql and it will display error suggesting to change the dialect.
SELECT * FROM employees WHERE department_id = ANY(ARRAY[1, 3, 5]);

JAM 🙂
https://jam.dev/c/f50e8838-721f-4923-a027-3dbac31b128f

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.

1 participant