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

Function object to generate a WHERE clause from an expression. More...

#include <metadata.hpp>

Public Member Functions

std::string operator() (std::string_view expr) const

Detailed Description

Function object to generate a WHERE clause from an expression.

This function object provides an operator() that takes an expression string and generates a corresponding WHERE clause for use in SQL queries. It is designed to be used in a constexpr context for compile-time evaluation of WHERE clause generation.

Member Function Documentation

◆ operator()()

std::string oxy::api::metadata::gen_where_fn::operator() ( std::string_view expr) const
Parameters
expr- The expression string to generate the WHERE clause from.
Returns
A string representing the generated WHERE clause.