relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::query::FunctionExpr< Expr > Class Template Reference

Base class for SQL function expressions. More...

#include <relx/query/function.hpp>

Inheritance diagram for relx::query::FunctionExpr< Expr >:
relx::query::ColumnExpression relx::query::SqlExpression

Public Member Functions

 FunctionExpr (std::string name, Expr expr)
 
std::string to_sql () const override
 
std::vector< std::string > bind_params () const override
 
std::string column_name () const override
 
std::string table_name () const override
 
- Public Member Functions inherited from relx::query::ColumnExpression
virtual ~ColumnExpression ()=default
 
virtual std::string qualified_name () const
 
- Public Member Functions inherited from relx::query::SqlExpression
virtual ~SqlExpression ()=default
 

Detailed Description

template<SqlExpr Expr>
class relx::query::FunctionExpr< Expr >

Base class for SQL function expressions.

Template Parameters
ExprThe expression type for the function argument

Definition at line 17 of file function.hpp.

Constructor & Destructor Documentation

◆ FunctionExpr()

template<SqlExpr Expr>
relx::query::FunctionExpr< Expr >::FunctionExpr ( std::string  name,
Expr  expr 
)
inline

Definition at line 19 of file function.hpp.

Member Function Documentation

◆ bind_params()

template<SqlExpr Expr>
std::vector< std::string > relx::query::FunctionExpr< Expr >::bind_params ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 23 of file function.hpp.

◆ column_name()

template<SqlExpr Expr>
std::string relx::query::FunctionExpr< Expr >::column_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 25 of file function.hpp.

◆ table_name()

template<SqlExpr Expr>
std::string relx::query::FunctionExpr< Expr >::table_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 27 of file function.hpp.

◆ to_sql()

template<SqlExpr Expr>
std::string relx::query::FunctionExpr< Expr >::to_sql ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 21 of file function.hpp.


The documentation for this class was generated from the following file: