OXY-SYNC-DIRECTORY 1.0
OXY-SYNC-DIRECTORY Library Documentation
Loading...
Searching...
No Matches
oxy::directory::push_fn Struct Reference

Function object for pushing data to the database. More...

#include <context.hpp>

Public Types

using coro_t = boost::coroutines2::coroutine<oid_t>

Public Member Functions

auto operator() (context_t const &ctx) const -> coro_t::push_type
 Function call operator that executes the operation with the given context.
void operator() (context_t const &ctx, std::vector< oid_t > const &items) const
 Function call operator that executes the operation with the given context and items.

Detailed Description

Function object for pushing data to the database.

This function object provides a callable interface for pushing data to the database.

Member Function Documentation

◆ operator()() [1/2]

auto oxy::directory::push_fn::operator() ( context_t const & ctx) const -> coro_t::push_type

Function call operator that executes the operation with the given context.

Parameters
ctxThe context object containing the execution environment and state.
Returns
A coroutine push type object that can be used to send values to the coroutine.

◆ operator()() [2/2]

void oxy::directory::push_fn::operator() ( context_t const & ctx,
std::vector< oid_t > const & items ) const

Function call operator that executes the operation with the given context and items.

Parameters
ctxThe context object containing the execution environment and state.
itemsThe items to be pushed to the database.