You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added sqlWrap option, which allows formatting the SQL without paying any attention to the original line breaks in source code. Similarly to the way objectWrap works in Prettier. (Thanks to @abrahamguo)
Bugfixes
Avoid removing double-parenthesis around ((SELECT ...)) expressions. The previous implementation of parenthesis removal was too aggressive. Now it's probably a little too careful. In general, that feature needs more work. But it should be safer now. (Thanks to @wleeaf for reporting the issues.)
Also avoid excessive parenthesis removal around PostgreSQL row constructors, like SELECT foo(10, (1, 2)) was previously collapsed to SELECT foo(10, 1, 2), which was a definite bug. (Thanks again to @wleeaf for bringing this out.)