|
OXY API 1.0
OXY API Library Documentation
|
A function object that performs an intersection operation on a database (container) context, yielding the results as a coroutine. More...
#include <filter.hpp>
Public Member Functions | |
| auto | operator() (context_t const &main, std::string const &filterName, std::string const &column) const -> coro_t::pull_type |
| auto | operator() (context_t const &main, std::string const &filterName, std::string const &column) const -> coro_t::pull_type |
A function object that performs an intersection operation on a database (container) context, yielding the results as a coroutine.
The intersect_fn struct defines a function call operator that takes a context_t, a filter name, and a column name as parameters. It returns a coroutine that yields a map of column names to their corresponding values for each row that is present in both the specified context and the filter. This allows for efficient retrieval of rows that meet the criteria defined by the intersection of the context and the filter, enabling the caller to process each matching row as it is produced by the coroutine.
| auto oxy::filter::intersect_fn::operator() | ( | context_t const & | main, |
| std::string const & | filterName, | ||
| std::string const & | column ) const -> coro_t::pull_type |
| main | - The main database (container) context to intersect with the filter. |
| filterName | - The name of the filter to intersect with the main context. |
| column | - The name of the column to be used for the intersection operation. |
| auto oxy::filter::intersect_fn::operator() | ( | context_t const & | main, |
| std::string const & | filterName, | ||
| std::string const & | column ) const -> coro_t::pull_type |
| main | - The main database (container) context to intersect with the filter. |
| filterName | - The name of the filter to intersect with the main context. |
| column | - The name of the column to be used for the intersection operation. |