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

Binary arithmetic expression. More...

#include <relx/query/arithmetic.hpp>

Inheritance diagram for relx::query::ArithmeticExpr< Left, Right >:
relx::query::ColumnExpression relx::query::SqlExpression

Public Member Functions

 ArithmeticExpr (Left left, std::string op, Right right)
 
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 Left, SqlExpr Right>
class relx::query::ArithmeticExpr< Left, Right >

Binary arithmetic expression.

Definition at line 58 of file arithmetic.hpp.

Constructor & Destructor Documentation

◆ ArithmeticExpr()

template<SqlExpr Left, SqlExpr Right>
relx::query::ArithmeticExpr< Left, Right >::ArithmeticExpr ( Left  left,
std::string  op,
Right  right 
)
inline

Definition at line 60 of file arithmetic.hpp.

Member Function Documentation

◆ bind_params()

template<SqlExpr Left, SqlExpr Right>
std::vector< std::string > relx::query::ArithmeticExpr< Left, Right >::bind_params ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 67 of file arithmetic.hpp.

◆ column_name()

template<SqlExpr Left, SqlExpr Right>
std::string relx::query::ArithmeticExpr< Left, Right >::column_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 74 of file arithmetic.hpp.

◆ table_name()

template<SqlExpr Left, SqlExpr Right>
std::string relx::query::ArithmeticExpr< Left, Right >::table_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 94 of file arithmetic.hpp.

◆ to_sql()

template<SqlExpr Left, SqlExpr Right>
std::string relx::query::ArithmeticExpr< Left, Right >::to_sql ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 63 of file arithmetic.hpp.


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