Skip to content

Commit

Permalink
Add Repo.query!/4 for repo parity completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
sorentwo committed Nov 15, 2023
1 parent 4ecb070 commit c4d4068
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/oban/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ defmodule Oban.Repo do
__dispatch__(:query, [conf, statement, params], opts)
end

@doc """
Wraps `Ecto.Adapters.SQL.Repo.query!/4` with an added `Oban.Config` argument.
"""
@doc since: "2.17.0"
def query!(conf, statement, params \\ [], opts \\ []) do
__dispatch__(:query, [conf, statement, params], opts)
end

@doc """
Wraps `Ecto.Adapters.SQL.Repo.to_sql/2` with an added `Oban.Config` argument.
"""
Expand Down

0 comments on commit c4d4068

Please sign in to comment.