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

Iterate over subset of elements via SqlRowIterator #195

Open
Yaraslaut opened this issue Jan 31, 2025 · 0 comments
Open

Iterate over subset of elements via SqlRowIterator #195

Yaraslaut opened this issue Jan 31, 2025 · 0 comments

Comments

@Yaraslaut
Copy link
Member

Extend SqllRowIterator to allow filtering of the data that we extract from the database
something like this:

  for (auto&& person: SqlRowIterator<Person>(stmt, [](auto& q) {
           return q.Where("age", 10).orWhere([](auto& q) {
               return q.Where("age", 20).Where("name", "John");
           });
       }))
...

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

1 participant