TerminalFormatter

class sqlcompyre.report.formatters.terminal.TerminalFormatter(colored: bool = True)[source]

Formatter for printing reports to the terminal.

Attributes:
file_extension

The file extension to use when this formatter’s output is written to a file.

Methods

format(metadata, sections[, ...])

Format the metadata and the sections from a report.

property file_extension: str

The file extension to use when this formatter’s output is written to a file.

format(metadata: Metadata, sections: list[Section], hide_matching_columns: bool = False) str[source]

Format the metadata and the sections from a report.

Returns:

The formatted string describing the metadata and all sections.