Beautify query

Beautify your query to improve readability using one of our formatting algorithms:

from flowhigh.format.formatting import Formatter

# The SQL query to be parsed
sql = """%sql%"""

# Read and format the sql input query
# Choose between the various formatter algorithms: compact, comfortable and balanced. Compact is the default
formatter = Formatter.from_sql(sql, format_option="compact")
# Print the formatted string
print("Formatted String:")
print(formatter.get_formatted_string())