sql_formatter icon indicating copy to clipboard operation
sql_formatter copied to clipboard

Comma position when eliciting columns

Open turbofart opened this issue 6 months ago • 0 comments

Is your feature request related to a problem? Please describe

Currently, when eliciting columns, comma is added at the end of the column name.

Describe the solution you'd like

I would like to be able to format my queries like this:

select userid
     , is_active
     , email_address
from   user

this is handy when adding new columns to the result set, then the diff in cvs is affecting only one row instead of 2 (previous row comma, plus new line new column). Also, it's much easier to quickly comment-out columns by adding -- and not having to touch the previous line.

turbofart avatar Jul 29 '24 13:07 turbofart