Skip to content
New issue

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

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

Already on GitHub? # to your account

Support queries for preload #26

Open
liveforeverx opened this issue Aug 13, 2015 · 1 comment
Open

Support queries for preload #26

liveforeverx opened this issue Aug 13, 2015 · 1 comment

Comments

@liveforeverx
Copy link
Member

For example: http://hexdocs.pm/ecto/0.15.0/ in Ecto.Repo.preload - preload supports quering.

We need to support query for preloading too.

Example in abstract form: get city load: weather, where weather.temp_lo > 30

Starts with:

  1. propose API, that should be with some examples.
@0xAX
Copy link
Member

0xAX commented Aug 17, 2015

@liveforeverx If we will use this variant:

get city load: weather, where weather.temp_lo > 30

How do we distinguish query for preload and main query? What do you think about:

get exd/city load:"weather => where:weather.temp_lo > 30, another_assoc" where:"name == \"Moscow\""

In this way we can parse command line option and its clear where preload query and where is general query. What do you think about this?

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

No branches or pull requests

2 participants