SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ ToString()

constexpr std::string_view sqt::PredicateOperatorEnum::ToString ( PredicateOperator op)
staticconstexprnoexcept

Converts the specified sqt::PredicateOperator value to the corresponding string in SQL syntax.

Parameters
opThe value to be converted.
Returns
The string representation of the specified value.

The conversion follows the following mapping:

Operator String
sqt::PredicateOperator::Equal =
sqt::PredicateOperator::NotEqual <>
sqt::PredicateOperator::Less <
sqt::PredicateOperator::LessEqual <=
sqt::PredicateOperator::Greater >
sqt::PredicateOperator::GreaterEqual >=
sqt::PredicateOperator::And and
sqt::PredicateOperator::Or or