Format SQL in string text blocks
ProprietaryChecks whether a text block may contain SQL, and if so, formats the text accordingly.
org. openrewrite. sql. FormatSqlOptional
Check out https://github.com/vertical-blank/sql-formatter#dialect for supported dialects.
Defaults to two spaces.
Defaults to 50.
uppercaseBoolean
Defaults to false (not safe to use when SQL dialect has case-sensitive identifiers).
mod run . --recipe= org. openrewrite. sql. FormatSqlInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.