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

Function object to copy a table or filtered data from one SQLite database to another. More...

#include <connection.hpp>

Public Member Functions

void operator() (connection_ptr const &source, std::string const &schema_name, std::string const &table_name) const
void operator() (connection_ptr const &source, std::string const &schema_name, std::string const &table_name, std::string const &filter_name) const
void operator() (fs::path const &source, fs::path const &target, std::string const &table_name) const

Detailed Description

Function object to copy a table or filtered data from one SQLite database to another.

This function object provides multiple overloads of the operator() to copy a table or filtered data from a source connection or file path to a target connection or file path.

Member Function Documentation

◆ operator()() [1/3]

void oxy::copy_fn::operator() ( connection_ptr const & source,
std::string const & schema_name,
std::string const & table_name ) const
Parameters
source- The connection pointer to the source SQLite database.
schema_name- The schema name of the source database.
table_name- The name of the table to be copied.

◆ operator()() [2/3]

void oxy::copy_fn::operator() ( connection_ptr const & source,
std::string const & schema_name,
std::string const & table_name,
std::string const & filter_name ) const
Parameters
source- The connection pointer to the source SQLite database.
schema_name- The schema name of the source database.
table_name- The name of the table to be copied.
filter_name- The name of the filter to be applied.

◆ operator()() [3/3]

void oxy::copy_fn::operator() ( fs::path const & source,
fs::path const & target,
std::string const & table_name ) const
Parameters
source- The filesystem path to the source SQLite database.
target- The filesystem path to the target SQLite database.
table_name- The name of the table to be copied.