|
OXY API 1.0
OXY API Library Documentation
|
Function object to push records into the container metadata database. More...
#include <metadata.hpp>
Public Types | |
| using | coro_t = boost::coroutines2::coroutine<parameter_t> |
| using | parameter_t = std::tuple<record_t, std::optional<timestamp_t>> |
Public Member Functions | |
| auto | operator() (context_t const &ctx) const -> coro_t::push_type |
| void | operator() (context_t const &ctx, std::vector< record_t > const &items) const |
Function object to push records into the container metadata database.
This function object provides two operator() overloads: one that takes a context and returns a push coroutine for inserting records, and another that takes a context and a vector of records for batch insertion. It is designed to be used in a coroutine-based context for efficient insertion of records into the container metadata database.
| auto oxy::api::metadata::push_fn::operator() | ( | context_t const & | ctx | ) | const -> coro_t::push_type |
| ctx | - The context for container metadata record operations. |