Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/ecto/adapters/sql.ex
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ defmodule Ecto.Adapters.SQL do
@doc """
Same as `query/4` but raises on invalid queries.
"""
@spec query!(Ecto.Repo.t | Ecto.Adapter.adapter_meta, String.t, [term], Keyword.t) ::
@spec query!(Ecto.Repo.t | Ecto.Adapter.adapter_meta, iodata, [term], Keyword.t) ::
%{:rows => nil | [[term] | binary],
:num_rows => non_neg_integer,
optional(atom) => any}
Expand Down Expand Up @@ -398,7 +398,7 @@ defmodule Ecto.Adapters.SQL do
{:ok, %{rows: [[42]], num_rows: 1}}

"""
@spec query(pid() | Ecto.Repo.t | Ecto.Adapter.adapter_meta, String.t, [term], Keyword.t) ::
@spec query(pid() | Ecto.Repo.t | Ecto.Adapter.adapter_meta, iodata, [term], Keyword.t) ::
{:ok, %{:rows => nil | [[term] | binary],
:num_rows => non_neg_integer,
optional(atom) => any}}
Expand Down Expand Up @@ -454,7 +454,7 @@ defmodule Ecto.Adapters.SQL do
# | My Post Title | 1 | NULL |
# +---------------+---------+--------+
@doc false
@spec format_table(%{columns: [String.t] | nil, rows: [term()] | nil}) :: String.t
@spec format_table(%{:columns => [String.t] | nil, :rows => [term()] | nil, optional(atom) => any()}) :: String.t
def format_table(result)

def format_table(nil), do: ""
Expand Down
2 changes: 1 addition & 1 deletion lib/mix/ecto_sql.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Mix.EctoSQL do
@doc """
Ensures the given repository's migrations paths exists on the file system.
"""
@spec ensure_migrations_paths(Ecto.Repo.t, Keyword.t) :: String.t
@spec ensure_migrations_paths(Ecto.Repo.t, Keyword.t) :: [String.t]
def ensure_migrations_paths(repo, opts) do
paths = Keyword.get_values(opts, :migrations_path)
paths = if paths == [], do: [Path.join(source_repo_priv(repo), "migrations")], else: paths
Expand Down