Ecto.Adapters.SQL.format_table

You're seeing just the function format_table, go back to Ecto.Adapters.SQL module for more information.

Specs

format_table(%{columns: [String.t()] | nil, rows: [term()] | nil}) :: String.t()

Returns a formatted table for a given query result.

Examples

iex> Ecto.Adapters.SQL.format_table(query) |> IO.puts()
+---------------+---------+--------+
| title         | counter | public |
+---------------+---------+--------+
| My Post Title |       1 | NULL   |
+---------------+---------+--------+