Skip to content

feat: Add optional vertical alignment for CREATE TABLE definitions#398

Open
david-auk wants to merge 18 commits into
darold:masterfrom
david-auk:feat/vertical-align
Open

feat: Add optional vertical alignment for CREATE TABLE definitions#398
david-auk wants to merge 18 commits into
darold:masterfrom
david-auk:feat/vertical-align

Conversation

@david-auk

@david-auk david-auk commented Jul 9, 2026

Copy link
Copy Markdown

Adds an optional --vertical-align setting for CREATE TABLE statements.

Fixes #331

It aligns column names, datatypes, constraints, DEFAULT values, and trailing comments to make larger table definitions easier to read.

The option is disabled by default and can also be enabled with:

vertical-align=1

The change includes tests, documentation, config support, and preserves the existing output when the option is disabled.

Was missing this myself, love the project and would like to contribute :)

Comment thread t/03_vertical_align.t

@david-auk david-auk Jul 11, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ive also created this new test file

Initially i created this for local testing but im not sure if i should keep it as it might not be conform the existing application structure

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: Vertical alignment

1 participant