-
Notifications
You must be signed in to change notification settings - Fork 17
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
New default formatter for SQL #660
Conversation
Caution Review failedThe pull request is closed. WalkthroughThe changes update the workspace configuration and SQL query formatting without altering underlying functionality. In VSCode configuration files, the recommendation for the SQL formatter has been changed from Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant VSCode
participant SQLTools
Developer->>VSCode: Save SQL file
VSCode->>SQLTools: Trigger auto-format (via editor.formatOnSave)
SQLTools->>VSCode: Return formatted SQL code
VSCode->>Developer: Update file with formatted SQL code
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Add sequence ID tracking and payer reportingAdded sequence ID tracking to unsettled usage records and implemented payer reporting functionality. Changed SQL formatting from pgFormatter to SQLTools. Modified database queries to track highest sequence IDs, added new queries for payer reporting, and created PayerReportManager to generate payment activity summaries. 📍Where to StartThe Macroscope summarized fcb0859. |
6f70e24
to
504bd53
Compare
504bd53
to
91c4036
Compare
de4ccfe
to
10f84bb
Compare
10f84bb
to
900622b
Compare
fad8901
to
91bca49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no opinions on formatting.
Do we have some formatter in CI or that we run manually that will follow these? I don't use VScode so the extensions config won't affect my environment.
I have not yet found a SQL formatter that does all 3
So, right now the formatting is unchecked. |
91bca49
to
fcb0859
Compare
TL;DR
Replace pgFormatter with SQLTools for SQL formatting in VS Code.
Why?
sqltools is more actively maintained. The previous formatter was dropped from the Cursor extensions marketplace. I also think the formatting is nicer.
What changed?
bradymholt.pgformatter
withmtxr.sqltools
in VS Code extensions recommendationspkg/db/queries.sql
with the new formatterHow to test?
Why make this change?
SQLTools provides better SQL formatting capabilities than pgFormatter, with more configuration options and better integration with VS Code. The new formatting style improves SQL readability while maintaining the same functionality, making the codebase more maintainable.
Summary by CodeRabbit
New Features
Style