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

Function object for pulling data from the database. More...

#include <context.hpp>

Public Types

using coro_t = boost::coroutines2::coroutine<result_t>
using result_t = std::tuple<oid_t, timestamp_t>

Public Member Functions

auto operator() (context_t const &ctx) const -> coro_t::pull_type
 Function call operator that executes the operation with the given context.
auto operator() (context_t const &ctx, std::string const &filter_name) const -> coro_t::pull_type
 Function call operator that executes the operation with the given context and filter name.

Detailed Description

Function object for pulling data from the database.

This function object provides a callable interface for pulling data from the database.

Member Function Documentation

◆ operator()() [1/2]

auto oxy::directory::pull_fn::operator() ( context_t const & ctx) const -> coro_t::pull_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 pull type object that can be used to retrieve values from the coroutine.

◆ operator()() [2/2]

auto oxy::directory::pull_fn::operator() ( context_t const & ctx,
std::string const & filter_name ) const -> coro_t::pull_type

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

Parameters
ctxThe context object containing the execution environment and state.
filter_nameThe name of the filter to apply.
Returns
A coroutine pull type object that can be used to retrieve values from the coroutine.