Skip to content

Commit

Permalink
opts parameter last
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinG721 committed Jun 2, 2021
1 parent b775aab commit 40aad89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/snowflex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ defmodule Snowflex do
end
end

@spec param_query(atom(), String.t(), query_opts(), list(query_param())) ::
@spec param_query(atom(), String.t(), list(query_param()), query_opts()) ::
sql_data() | {:error, term()}
def param_query(pool_name, query, opts, params) do
def param_query(pool_name, query, params, opts) do
timeout = Keyword.get(opts, :timeout)

case :poolboy.transaction(
Expand Down
2 changes: 1 addition & 1 deletion lib/snowflex/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ defmodule Snowflex.Connection do

@impl Snowflex.Connection
def execute(query, params) when is_binary(query) and is_list(params) do
Snowflex.param_query(@name, query, @query_opts, params)
Snowflex.param_query(@name, query, params, @query_opts)
end
end
end
Expand Down

0 comments on commit 40aad89

Please sign in to comment.