Skip to content

Commit d701128

Browse files
committed
format_table was not meant to be part of public API
1 parent 2794b91 commit d701128

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

lib/ecto/adapters/sql.ex

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -443,21 +443,17 @@ defmodule Ecto.Adapters.SQL do
443443
query!(adapter_meta, query, params, []).num_rows != 0
444444
end
445445

446-
447-
@doc """
448-
Returns a formatted table for a given query `result`.
449-
450-
451-
## Examples
452-
453-
iex> Ecto.Adapters.SQL.format_table(query) |> IO.puts()
454-
+---------------+---------+--------+
455-
| title | counter | public |
456-
+---------------+---------+--------+
457-
| My Post Title | 1 | NULL |
458-
+---------------+---------+--------+
459-
460-
"""
446+
# Returns a formatted table for a given query `result`.
447+
#
448+
# ## Examples
449+
#
450+
# iex> Ecto.Adapters.SQL.format_table(query) |> IO.puts()
451+
# +---------------+---------+--------+
452+
# | title | counter | public |
453+
# +---------------+---------+--------+
454+
# | My Post Title | 1 | NULL |
455+
# +---------------+---------+--------+
456+
@doc false
461457
@spec format_table(%{columns: [String.t] | nil, rows: [term()] | nil}) :: String.t
462458
def format_table(result)
463459

0 commit comments

Comments
 (0)