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

Generic binary condition expression. More...

#include <relx/query/condition.hpp>

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

Public Member Functions

 BinaryCondition (Left left, std::string op, Right right)
 
std::string to_sql () const override
 
std::vector< std::string > bind_params () const override
 
- Public Member Functions inherited from relx::query::SqlExpression
virtual ~SqlExpression ()=default
 

Detailed Description

template<SqlExpr Left, SqlExpr Right>
class relx::query::BinaryCondition< Left, Right >

Generic binary condition expression.

Definition at line 16 of file condition.hpp.

Constructor & Destructor Documentation

◆ BinaryCondition()

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

Definition at line 18 of file condition.hpp.

Member Function Documentation

◆ bind_params()

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

Implements relx::query::SqlExpression.

Definition at line 27 of file condition.hpp.

◆ to_sql()

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

Implements relx::query::SqlExpression.

Definition at line 21 of file condition.hpp.


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