class format.Formatter
from_sql(string: List[str], format_option: str = ‘compact’) from builtins.type
Initialise formatter from a sql query
Parameters
sql: the query(-ies) to parse
Format_option: any between `compact`, `balanced`, `comfortable` format algorithms. compact is the default value
Sample Usage
>>> from flowhigh.format.formatting import Formatter
>>> Formatter.from_sql("SELECT A.ID FROM TAB AS A")
Returns
the Formatter object with the beautified query
<flowhigh.format.formatting.Formatter object at 0x7f41b03099d0>