Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
database::query::condition Struct Reference

Represents a single WHERE condition. More...

#include <condition_builder.h>

Collaboration diagram for database::query::condition:
Collaboration graph

Public Member Functions

bool is_raw () const
 

Public Attributes

std::string field
 Field name.
 
std::string op
 Operator (=, !=, <, >, <=, >=, LIKE, IN, etc.)
 
core::database_value value
 Value to compare.
 
std::string raw
 Raw SQL condition (if any)
 

Detailed Description

Represents a single WHERE condition.

Definition at line 28 of file condition_builder.h.

Member Function Documentation

◆ is_raw()

bool database::query::condition::is_raw ( ) const
inline

Definition at line 34 of file condition_builder.h.

34{ return !raw.empty(); }
std::string raw
Raw SQL condition (if any)

References raw.

Referenced by database::query::condition_builder::format_condition().

Here is the caller graph for this function:

Member Data Documentation

◆ field

std::string database::query::condition::field

◆ op

std::string database::query::condition::op

Operator (=, !=, <, >, <=, >=, LIKE, IN, etc.)

Definition at line 30 of file condition_builder.h.

Referenced by database::query::condition_builder::add(), and database::query::condition_builder::format_condition().

◆ raw

std::string database::query::condition::raw

◆ value

core::database_value database::query::condition::value

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