@@ -509,7 +509,7 @@ defmodule Ecto.Adapters.SQL do
509509
510510 @ doc @ explain_doc
511511 @ spec explain (
512- pid ( ) | Ecto.Repo . t ( ) | Ecto.Adapter . adapter_meta ( ) ,
512+ pid ( ) | Ecto.Repo . t ( ) ,
513513 :all | :update_all | :delete_all ,
514514 Ecto.Queryable . t ( ) ,
515515 opts :: Keyword . t ( )
@@ -521,7 +521,7 @@ defmodule Ecto.Adapters.SQL do
521521 explain ( Ecto.Adapter . lookup_meta ( repo ) , operation , queryable , wrap_in_transaction? , opts )
522522 end
523523
524- def explain ( % { repo: repo } = adapter_meta , operation , queryable , true , opts ) do
524+ defp explain ( % { repo: repo } = adapter_meta , operation , queryable , true , opts ) do
525525 Ecto.Multi . new ( )
526526 |> Ecto.Multi . run ( :explain , fn _ , _ ->
527527 { prepared , prepared_params } = to_sql ( operation , repo , queryable )
@@ -538,7 +538,7 @@ defmodule Ecto.Adapters.SQL do
538538 end
539539 end
540540
541- def explain ( % { repo: repo } = adapter_meta , operation , queryable , false , opts ) do
541+ defp explain ( % { repo: repo } = adapter_meta , operation , queryable , false , opts ) do
542542 { prepared , prepared_params } = to_sql ( operation , repo , queryable )
543543 sql_call ( adapter_meta , :explain_query , [ prepared ] , prepared_params , opts )
544544 end
0 commit comments