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

Function object to detach a SQLite database from an existing connection. More...

#include <connection.hpp>

Public Member Functions

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

Detailed Description

Function object to detach a SQLite database from an existing connection.

This function object provides an operator() that takes a connection_ptr and a schema name, and detaches the corresponding database from the connection.

Member Function Documentation

◆ operator()()

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