OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::api::metadata::get_context_fn Struct Reference

Function object to retrieve a context for container metadata record operations in the metadata database. More...

#include <metadata.hpp>

Public Member Functions

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

Detailed Description

Function object to retrieve a context for container metadata record operations in the metadata database.

This function object provides two operator() overloads: one that takes a connection pointer and a schema name, and another that takes only a schema name. Both overloads return a context_t instance representing the context for container metadata record operations in the metadata database. It is designed to be used in a constexpr context for compile-time evaluation of context retrieval operations.

Member Function Documentation

◆ operator()() [1/2]

context_t oxy::api::metadata::get_context_fn::operator() ( connection_ptr const & conn,
std::string const & schema ) const
Parameters
conn- The connection pointer to the metadata database.
schema- The name of the schema for the context.
Returns
A context_t instance representing the context for container metadata record operations.

◆ operator()() [2/2]

context_t oxy::api::metadata::get_context_fn::operator() ( std::string const & schema) const
Parameters
schema- The name of the schema for the context.
Returns
A context_t instance representing the context for container metadata record operations.