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

Date addition/subtraction expression. More...

#include <relx/query/date.hpp>

Inheritance diagram for relx::query::DateArithmeticExpr< DateExpr, IntervalExpr >:
relx::query::ColumnExpression relx::query::SqlExpression

Public Member Functions

 DateArithmeticExpr (DateExpr date_expr, std::string op, IntervalExpr interval_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 DateExpr, SqlExpr IntervalExpr>
class relx::query::DateArithmeticExpr< DateExpr, IntervalExpr >

Date addition/subtraction expression.

Definition at line 291 of file date.hpp.

Constructor & Destructor Documentation

◆ DateArithmeticExpr()

template<SqlExpr DateExpr, SqlExpr IntervalExpr>
relx::query::DateArithmeticExpr< DateExpr, IntervalExpr >::DateArithmeticExpr ( DateExpr  date_expr,
std::string  op,
IntervalExpr  interval_expr 
)
inline

Definition at line 293 of file date.hpp.

Member Function Documentation

◆ bind_params()

template<SqlExpr DateExpr, SqlExpr IntervalExpr>
std::vector< std::string > relx::query::DateArithmeticExpr< DateExpr, IntervalExpr >::bind_params ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 301 of file date.hpp.

◆ column_name()

template<SqlExpr DateExpr, SqlExpr IntervalExpr>
std::string relx::query::DateArithmeticExpr< DateExpr, IntervalExpr >::column_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 308 of file date.hpp.

◆ table_name()

template<SqlExpr DateExpr, SqlExpr IntervalExpr>
std::string relx::query::DateArithmeticExpr< DateExpr, IntervalExpr >::table_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 316 of file date.hpp.

◆ to_sql()

template<SqlExpr DateExpr, SqlExpr IntervalExpr>
std::string relx::query::DateArithmeticExpr< DateExpr, IntervalExpr >::to_sql ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 297 of file date.hpp.


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