Formatting API
Utilities for converting complex outputs to clean Markdown.
SQL Result
maticlib.core.formatting.sql_result.format_as_markdown_table
Converts database columns and rows into a beautifully formatted Markdown table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
columns
|
List[str]
|
A list of column names. |
required |
rows
|
List[Tuple]
|
A list of tuple rows returned by the database. |
required |
Returns:
| Type | Description |
|---|---|
str
|
A valid Markdown table string. |