Skip to content

Commit 9052dc8

Browse files
committed
chore: allow repo to be a function that returns a module
1 parent e9ec32e commit 9052dc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/transformers/verify_repo.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ defmodule AshSqlite.Transformers.VerifyRepo do
1313
repo = Transformer.get_option(dsl, [:sqlite], :repo)
1414

1515
cond do
16+
is_function(repo) ->
17+
{:ok, dsl}
18+
1619
match?({:error, _}, Code.ensure_compiled(repo)) ->
1720
{:error, "Could not find repo module #{repo}"}
1821

0 commit comments

Comments
 (0)