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
New option sqlCanonicalSyntax. When enabled (which is the default), the formatter will perform various transformations on the source code, like adding AS keywords to table and column aliases, replacing some deprecated syntax with more modern one, etc.
Improved PostgreSQL and MySQL support
Much improved formatting of CREATE TABLE and ALTER TABLE.
The formatting of various statements will now adapt to existing code. Similarly to how the formatting of SELECT statement already behaved - i.e. when the original code is on a single line, the formatter also tries to place it on a single line and will only break it up to multiple lines when the statement is short enough.
Bugfixes
Created a script to automatically check for unused CST node fields, which uncovered several cases, where the formatter would end up silently deleting code. All fixed now and hopefully won't happen again.