relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::query::CoalesceExpr< First, Second, Rest > Class Template Reference

COALESCE function. More...

#include <relx/query/function.hpp>

Inheritance diagram for relx::query::CoalesceExpr< First, Second, Rest >:
relx::query::ColumnExpression relx::query::SqlExpression

Public Member Functions

 CoalesceExpr (First first, Second second, Rest... rest)
 
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 First, SqlExpr Second, SqlExpr... Rest>
class relx::query::CoalesceExpr< First, Second, Rest >

COALESCE function.

Template Parameters
FirstThe first expression type
SecondThe second expression type
RestThe types of the remaining expressions
Parameters
firstThe first expression
secondThe second expression
restThe remaining expressions
Returns
A SqlExpression representing COALESCE(first, second, ...)

Definition at line 355 of file function.hpp.

Constructor & Destructor Documentation

◆ CoalesceExpr()

template<SqlExpr First, SqlExpr Second, SqlExpr... Rest>
relx::query::CoalesceExpr< First, Second, Rest >::CoalesceExpr ( First  first,
Second  second,
Rest...  rest 
)
inline

Definition at line 357 of file function.hpp.

Member Function Documentation

◆ bind_params()

template<SqlExpr First, SqlExpr Second, SqlExpr... Rest>
std::vector< std::string > relx::query::CoalesceExpr< First, Second, Rest >::bind_params ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 371 of file function.hpp.

◆ column_name()

template<SqlExpr First, SqlExpr Second, SqlExpr... Rest>
std::string relx::query::CoalesceExpr< First, Second, Rest >::column_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 390 of file function.hpp.

◆ table_name()

template<SqlExpr First, SqlExpr Second, SqlExpr... Rest>
std::string relx::query::CoalesceExpr< First, Second, Rest >::table_name ( ) const
inlineoverridevirtual

Implements relx::query::ColumnExpression.

Definition at line 392 of file function.hpp.

◆ to_sql()

template<SqlExpr First, SqlExpr Second, SqlExpr... Rest>
std::string relx::query::CoalesceExpr< First, Second, Rest >::to_sql ( ) const
inlineoverridevirtual

Implements relx::query::SqlExpression.

Definition at line 361 of file function.hpp.


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