OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::filter::copy_fn Struct Reference

A function object that copies data from a source context to a destination context. More...

#include <filter.hpp>

Classes

struct  destination_t
 Represents the destination context for the copy operation. More...
struct  source_t
 Represents the source context for the copy operation. More...

Public Member Functions

void operator() (source_t const &from, destination_t const &to) const
void operator() (source_t const &from, destination_t const &to) const

Detailed Description

A function object that copies data from a source context to a destination context.

The copy_fn struct defines a function call operator that takes a source context and a destination context as parameters. It performs the copy operation, transferring data from the source to the destination. The source context includes information about the database (container) connection, columns to be copied, and any filters to be applied. The destination context specifies the target path and schema for the copied data. This allows for efficient duplication of data between different contexts in the database.