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

Function object to attach a SQLite database to an existing connection. More...

#include <connection.hpp>

Public Member Functions

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

Detailed Description

Function object to attach a SQLite database to an existing connection.

This function object provides an operator() that takes a connection_ptr, a filesystem path to the target database, and a schema name, and attaches the target database to the source connection under the specified schema name.

Member Function Documentation

◆ operator()()

void oxy::attach_fn::operator() ( connection_ptr const & source,
fs::path const & target,
std::string const & schema_name ) const
Parameters
source- The connection pointer to the source SQLite database.
target- The filesystem path to the target SQLite database to be attached.
schema_name- The schema name under which the target database will be attached.