Skip to content

Conversation

vladjerca
Copy link
Contributor

@vladjerca vladjerca commented Sep 4, 2025

Add SQL formatting to the query logger for improved readability.

  • Integrate @sqltools/formatter to format SQL queries
  • Improve table name extraction in EnhancedQueryLogger
    • technically the prior implementation didn't respect the type definition of string | null as it could've also returned undefined

Fixes: #3

Example Output:

image

@max-programming
Copy link
Owner

Thank you so much! I'll push the bun lockfile and delete the package lockfile

@max-programming
Copy link
Owner

Thanks for this immense contribution! Now it looks much better!

@max-programming max-programming merged commit 63001b2 into max-programming:main Sep 4, 2025
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.

Feature Request: Formatted, Multi-Line SQL Output
2 participants