|
OXY API 1.0
OXY API Library Documentation
|
Function object to push categories to the metadata database. More...
#include <categories.hpp>
Public Types | |
| using | coro_t = boost::coroutines2::coroutine<category_t> |
Public Member Functions | |
| auto | operator() (connection_ptr const &conn) const -> coro_t::push_type |
| void | operator() (connection_ptr const &conn, std::vector< category_t > const &items) const |
Function object to push categories to the metadata database.
This function object provides an operator() that takes a connection pointer and returns a push coroutine for inserting categories. It also provides an overload that takes a connection pointer and a vector of category items for batch insertion. It is designed to be used in a constexpr context for compile-time evaluation of push operations.
| auto oxy::api::metadata::category::push_fn::operator() | ( | connection_ptr const & | conn | ) | const -> coro_t::push_type |
| conn | - The connection pointer to the metadata database. |
| void oxy::api::metadata::category::push_fn::operator() | ( | connection_ptr const & | conn, |
| std::vector< category_t > const & | items ) const |
| conn | - The connection pointer to the metadata database. |
| items | - A vector of category items to be pushed to the metadata database. |