OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::api::metadata::category::select_fn Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ operator()() [1/2]

auto oxy::api::metadata::category::select_fn::operator() ( connection_ptr const & conn) const -> coro_t::pull_type
Parameters
conn- The connection pointer to the metadata database.
Returns
A coroutine pull type that yields categories from the metadata database.

◆ operator()() [2/2]

auto oxy::api::metadata::category::select_fn::operator() ( connection_ptr const & conn,
std::string const & where_clause ) const -> coro_t::pull_type
Parameters
conn- The connection pointer to the metadata database.
where_clause- A string representing the where clause for filtering the selection.
Returns
A coroutine pull type that yields categories from the metadata database based on the where clause.