matador::condition< column, std::pair< T, T > > Class Template Reference

Between condition. More...

#include <condition.hpp>

Inherits detail::basic_condition.

Public Member Functions

 condition (column col, const std::pair< T, T > &range)
 Create a new between condition.
 
std::string evaluate (basic_dialect &dialect) const override
 Evaluates the condition.
 

Detailed Description

template<class T>
class matador::condition< column, std::pair< T, T > >

Between condition.

The condition represents a between where clause part.

Template Parameters
TThe type of the boundary values

Constructor & Destructor Documentation

◆ condition()

template<class T >
matador::condition< column, std::pair< T, T > >::condition ( column  col,
const std::pair< T, T > &  range 
)
inline

Create a new between condition.

Parameters
colThe column for the range check
rangeThe boundary values defining the range

Member Function Documentation

◆ evaluate()

template<class T >
std::string matador::condition< column, std::pair< T, T > >::evaluate ( basic_dialect dialect) const
inlineoverride

Evaluates the condition.

Evaluates the condition to a between part based on the given compile type

Parameters
dialectThe dialect used to evaluate
Returns
A condition BETWEEN part of the query

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