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

Function object to enumerate the commits in a container. More...

#include <commit.hpp>

Public Types

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

Public Member Functions

auto operator() (const connection_ptr &conn, const oid_t &begin, const oid_t &end) const -> coro_t::pull_type

Detailed Description

Function object to enumerate the commits in a container.

This functor provides a coroutine-based interface to enumerate commits in a container. It allows for lazy evaluation of commits between a specified range of object IDs (OIDs).

Member Function Documentation

◆ operator()()

auto oxy::core::pull_oid_fn::operator() ( const connection_ptr & conn,
const oid_t & begin,
const oid_t & end ) const -> coro_t::pull_type
Parameters
conn- A pointer to the database (container) connection from which to enumerate commits.
begin- The starting OID of the range to enumerate commits.
end- The ending OID of the range to enumerate commits.
Returns
A coroutine pull type that yields OIDs of commits in the specified range.