Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configure repo_opts per query #61

Open
clouds56 opened this issue Dec 7, 2018 · 2 comments
Open

Allow configure repo_opts per query #61

clouds56 opened this issue Dec 7, 2018 · 2 comments

Comments

@clouds56
Copy link

clouds56 commented Dec 7, 2018

Now we could only configure prefix in repo_opts, is it possible to make the option also available in Dataloader.Ecto.load? For example

Dataloader.Ecto.load_many(Repo, :assoc_key, record,
    repo_opts: [prefix: "my_prefix"], other_option: true)

Now ecto-sql 3.0 already supported prefix well, hope dataloader could do better.

@agalvez-papa
Copy link

Please!

@benwilson512
Copy link
Contributor

PR welcome for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants