|
OXY API 1.0
OXY API Library Documentation
|
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 |
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.
| auto oxy::context::remove_fn::operator() | ( | context_t const & | ctx | ) | const -> coro_t::push_type |
| ctx | - The database context from which to remove rows. |