Format SQL in string text blocks

Proprietary

Checks whether a text block may contain SQL, and if so, formats the text accordingly.

org.openrewrite.sql.FormatSql

Optional

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.FormatSql

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.