OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::context::remove_fn Struct Reference

A function object that removes rows from a database context as a coroutine, yielding the identifiers of the removed rows. 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

Detailed Description

A function object that removes rows from a database context as a coroutine, yielding the identifiers of the removed rows.

The remove_fn struct defines a function call operator that takes a context_t as a parameter and returns a coroutine that yields the identifiers (oids) of the rows removed from the specified context. This allows for dynamic removal of data from the database while providing feedback on which rows were affected.

Member Function Documentation

◆ operator()()

auto oxy::context::remove_fn::operator() ( context_t const & ctx) const -> coro_t::push_type
Parameters
ctx- The database context from which to remove rows.
Returns
A coroutine push type that yields the identifiers of the rows removed from the specified context.