OXY-SYNC-DIRECTORY 1.0
OXY-SYNC-DIRECTORY Library Documentation
Loading...
Searching...
No Matches
oxy::directory::get_context_fn Struct Reference

Function object for obtaining a context_t from a connection and schema. More...

#include <context.hpp>

Public Member Functions

context_t operator() (connection_ptr const &conn) const
context_t operator() (connection_ptr const &conn, std::string const &schema) const
 Obtains a context_t from a connection pointer and schema name.

Detailed Description

Function object for obtaining a context_t from a connection and schema.

This function object provides a callable interface for obtaining a context_t from a connection pointer and schema name.

Member Function Documentation

◆ operator()()

context_t oxy::directory::get_context_fn::operator() ( connection_ptr const & conn,
std::string const & schema ) const

Obtains a context_t from a connection pointer and schema name.

Parameters
connThe connection pointer to the database
schemaThe name of the database schema
Returns
A context_t object encapsulating the connection and schema

References operator()().

Referenced by operator()().