OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::core::push_ref_fn Struct Reference

Function object to push a reference to a connection. More...

#include <reference.hpp>

Public Types

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

Public Member Functions

auto operator() (connection_ptr const &conn) const -> coro_t::push_type

Detailed Description

Function object to push a reference to a connection.

This functor provides an operator() that takes a connection pointer and returns a coroutine push type that allows for pushing references to the version control system. It enables efficient insertion of references in a coroutine-based context.

Member Function Documentation

◆ operator()()

auto oxy::core::push_ref_fn::operator() ( connection_ptr const & conn) const -> coro_t::push_type
Parameters
conn- A pointer to the database (container) connection to which the reference will be pushed.
Returns
A coroutine push type that allows for pushing references to the version control system.