@@ -795,7 +795,7 @@ defmodule Ecto.Adapters.SQL do
795795 {:ok, %{rows: [[42]], num_rows: 1}}
796796 """
797797 @ spec query ( iodata ( ) , Ecto.Adapters.SQL . query_params ( ) , Keyword . t ( ) ) ::
798- { :ok , Ecto.Adapters.SQL . query_result ( ) } | { :error , Exception . t ( ) }
798+ { :ok , Ecto.Adapters.SQL . query_result ( ) } | { :error , Exception . t ( ) }
799799 def query ( sql , params \\ [ ] , opts \\ [ ] ) do
800800 Ecto.Adapters.SQL . query ( get_dynamic_repo ( ) , sql , params , opts )
801801 end
@@ -806,7 +806,7 @@ defmodule Ecto.Adapters.SQL do
806806 Same as `query/3` but raises on invalid queries.
807807 """
808808 @ spec query ( iodata ( ) , Ecto.Adapters.SQL . query_params ( ) , Keyword . t ( ) ) ::
809- { :ok , Ecto.Adapters.SQL . query_result ( ) } | { :error , Exception . t ( ) }
809+ { :ok , Ecto.Adapters.SQL . query_result ( ) } | { :error , Exception . t ( ) }
810810 def query! ( sql , params \\ [ ] , opts \\ [ ] ) do
811811 Ecto.Adapters.SQL . query! ( get_dynamic_repo ( ) , sql , params , opts )
812812 end
@@ -836,7 +836,7 @@ defmodule Ecto.Adapters.SQL do
836836 """
837837
838838 @ spec query_many ( iodata , Ecto.Adapters.SQL . query_params ( ) , Keyword . t ( ) ) ::
839- { :ok , [ Ecto.Adapters.SQL . query_result ] } | { :error , Exception . t ( ) }
839+ { :ok , [ Ecto.Adapters.SQL . query_result ( ) ] } | { :error , Exception . t ( ) }
840840 def query_many ( sql , params \\ [ ] , opts \\ [ ] ) do
841841 Ecto.Adapters.SQL . query_many ( get_dynamic_repo ( ) , sql , params , opts )
842842 end
@@ -845,7 +845,7 @@ defmodule Ecto.Adapters.SQL do
845845 Same as `query_many/4` but raises on invalid queries.
846846 """
847847 @ spec query_many! ( iodata , Ecto.Adapters.SQL . query_params ( ) , Keyword . t ( ) ) ::
848- [ Ecto.Adapters.SQL . query_result ]
848+ [ Ecto.Adapters.SQL . query_result ( ) ]
849849 def query_many! ( sql , params \\ [ ] , opts \\ [ ] ) do
850850 Ecto.Adapters.SQL . query_many! ( get_dynamic_repo ( ) , sql , params , opts )
851851 end
@@ -867,7 +867,7 @@ defmodule Ecto.Adapters.SQL do
867867
868868 """
869869 @ spec to_sql ( :all | :update_all | :delete_all , Ecto.Queryable . t ( ) ) ::
870- { String . t ( ) , Ecto.Adapters.SQL . query_params ( ) }
870+ { String . t ( ) , Ecto.Adapters.SQL . query_params ( ) }
871871 def to_sql ( operation , queryable ) do
872872 Ecto.Adapters.SQL . to_sql ( operation , get_dynamic_repo ( ) , queryable )
873873 end
@@ -971,8 +971,9 @@ defmodule Ecto.Adapters.SQL do
971971 _ ->
972972 :ok
973973 end
974+
974975 @ spec explain ( :all | :update_all | :delete_all , Ecto.Queryable . t ( ) , opts :: Keyword . t ( ) ) ::
975- String . t ( ) | Exception . t ( ) | list ( map )
976+ String . t ( ) | Exception . t ( ) | list ( map )
976977 def explain ( operation , queryable , opts \\ [ ] ) do
977978 Ecto.Adapters.SQL . explain ( get_dynamic_repo ( ) , operation , queryable , opts )
978979 end
0 commit comments