Skip to content

Conversation

@xterao
Copy link
Collaborator

@xterao xterao commented Jun 30, 2025

  • Support for the PostgreSQL dialect
  • Support for nested conditional and loop directives
  • Support for bulk UPDATE syntax (already implemented)
  • Establish formatting rules for consecutive AND / OR clauses
  • Whitespace control before and after subgroups
  • Line break and indentation control for elements between block comments

@xterao xterao linked an issue Jun 30, 2025 that may be closed by this pull request
@xterao xterao self-assigned this Jul 1, 2025
xterao and others added 18 commits July 1, 2025 18:12
…-on-conflict

SQL Format Support ON CONFLICT
Add all necessary line breaks for relevant elements, and control whether to retain those line breaks within the block processing logic.
@xterao xterao added this to the ver2.0.0 Release milestone Aug 1, 2025
xterao and others added 16 commits August 1, 2025 15:27
… parenthesis when the block is an `SqlInsertValueGroupBlock` block class.
…ditionLoopCommentBlock` and determine whether the block should be line-broken.
…se-support

Fix SQL formatting for multiple CASE expressions support
…-in-condition-loop-directive

Add spacing rules for conditional loop directives in SQL formatting
Fixed the description of the format to be applied
Update README to clarify SQL formatter features and limitations
@xterao xterao merged commit 56ec214 into main Aug 4, 2025
5 checks passed
@xterao xterao deleted the feature/sql-format-official-version branch August 4, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Development of the Official SQL Formatter

2 participants