-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
iterate-like interface but for select with columns #815
Labels
Comments
Hi. It is a very nice feature. I have been thinking about it several days ago. I think that API will look like that: auto statement = storage.prepare(select(columns(&Doctor::id, &Doctor::name, &Visit::patientName, &Visit::vdate),
left_join<Visit>(on(c(&Doctor::id) == &Visit::doctorId))));
for(auto &row: storage.iterate(statement)) { // decltype(row) is the std::tuple<...>
//..
} and one can use any type of statement. What do you think? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
from the join example
rows is a
std::vector<std::tuple<Columns...>>
. it would be nice if the same query would be possible withiterate
to get a view overstd::tuple<Columns...>
instead.The text was updated successfully, but these errors were encountered: