Improve SQL formatting and query generation consistency#33
Merged
jeffreyaven merged 1 commit intomainfrom Feb 23, 2026
Merged
Conversation
- exists: split WHERE clause conditions onto separate lines - create: use All Properties tab instead of Required Properties - statecheck: remove duplicate region conditions, format WHERE on new lines - exports: use all GET fields (minus region), format WHERE on new lines - generate-docs: add 2-space indentation to SELECT columns, INSERT columns/values, and WHERE conditions; format DELETE/UPDATE WHERE clauses https://claude.ai/code/session_01LywYKJZwGUrrstHH89SgCS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR improves the formatting and consistency of generated SQL code examples and queries throughout the documentation generation and deployment dropdown components.
Key Changes
SQL Formatting Improvements:
getColumns()function to consistently indent column lists with 2 spacesQuery Generation Fixes:
buildExistsQuery()to properly format multi-line WHERE clauses with AND conditions on separate linesbuildStatecheckQuery()to:buildTemplate()exports query to:Template Extraction:
Motivation
These changes ensure that:
Checklist
Additional Notes
All changes are focused on formatting and query generation logic. The functional behavior of the generated SQL remains the same, but the output is now more consistent and readable.
https://claude.ai/code/session_01LywYKJZwGUrrstHH89SgCS