relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::query::IntervalExpr Class Reference

Date interval expression for date arithmetic. More...

#include <relx/query/date.hpp>

Inheritance diagram for relx::query::IntervalExpr:
relx::query::ColumnExpression relx::query::SqlExpression

Public Member Functions

 IntervalExpr (std::string interval)
 
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

Date interval expression for date arithmetic.

Definition at line 273 of file date.hpp.

Constructor & Destructor Documentation

◆ IntervalExpr()

relx::query::IntervalExpr::IntervalExpr ( std::string  interval)
inlineexplicit

Definition at line 275 of file date.hpp.

Member Function Documentation

◆ bind_params()

std::vector< std::string > relx::query::IntervalExpr::bind_params ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 279 of file date.hpp.

◆ column_name()

std::string relx::query::IntervalExpr::column_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 281 of file date.hpp.

◆ table_name()

std::string relx::query::IntervalExpr::table_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 283 of file date.hpp.

◆ to_sql()

std::string relx::query::IntervalExpr::to_sql ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 277 of file date.hpp.


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