|
OXY API 1.0
OXY API Library Documentation
|
Function object to select categories from the metadata database based on a where clause. More...
#include <categories.hpp>
Public Types | |
| using | coro_t = boost::coroutines2::coroutine<oid_t> |
Public Member Functions | |
| auto | operator() (connection_ptr const &conn) const -> coro_t::pull_type |
| auto | operator() (connection_ptr const &conn, std::string const &where_clause) const -> coro_t::pull_type |
Function object to select categories from the metadata database based on a where clause.
This function object provides an operator() that takes a connection pointer and returns a pull coroutine for selecting categories. It also provides an overload that takes a connection pointer and a where clause string for filtering the selection. It is designed to be used in a constexpr context for compile-time evaluation of select operations.
| auto oxy::api::metadata::category::select_fn::operator() | ( | connection_ptr const & | conn | ) | const -> coro_t::pull_type |
| conn | - The connection pointer to the metadata database. |
| auto oxy::api::metadata::category::select_fn::operator() | ( | connection_ptr const & | conn, |
| std::string const & | where_clause ) const -> coro_t::pull_type |
| conn | - The connection pointer to the metadata database. |
| where_clause | - A string representing the where clause for filtering the selection. |