Skip to content

Commit

Permalink
feat(Triplex): Allow users to turn off logging of SQL queries
Browse files Browse the repository at this point in the history
  • Loading branch information
tomciopp committed Sep 20, 2022
1 parent 6e4e2b4 commit 6875492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/triplex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ defmodule Triplex do
@doc """
Returns all the tenants on the given `repo`.
"""
def all(repo \\ config().repo) do
def all(repo \\ config().repo, opts \\ []) do
sql =
case repo.__adapter__ do
Ecto.Adapters.MyXQL ->
Expand All @@ -302,7 +302,7 @@ defmodule Triplex do
"""
end

%{rows: result} = SQL.query!(repo, sql, [])
%{rows: result} = SQL.query!(repo, sql, opts)

result
|> List.flatten()
Expand Down

0 comments on commit 6875492

Please sign in to comment.