|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
Represents a single cell value from a database result. More...
#include <relx/results/result.hpp>
Public Member Functions | |
| Cell (std::string value) | |
| Constructs a cell with a raw string value from the database. | |
| bool | is_null () const |
| Check if the cell contains a NULL value. | |
| const std::string & | raw_value () const |
| Get the raw string value. | |
| template<typename T > | |
| ResultProcessingResult< T > | as () const |
| Parse the cell's value as the specified type. | |
| template<typename T > | |
| ResultProcessingResult< T > | as (bool allow_numeric_bools) const |
| Parse the cell's value as the specified type with an option to allow numeric boolean conversion. | |
Represents a single cell value from a database result.
Definition at line 68 of file result.hpp.
|
inlineexplicit |
Constructs a cell with a raw string value from the database.
Definition at line 71 of file result.hpp.
|
inline |
Parse the cell's value as the specified type.
| T | The target C++ type |
Definition at line 83 of file result.hpp.
|
inline |
Parse the cell's value as the specified type with an option to allow numeric boolean conversion.
| T | The target C++ type |
| allow_numeric_bools | Whether to allow integers (0/1) to be converted to booleans |
Definition at line 93 of file result.hpp.
|
inline |
Check if the cell contains a NULL value.
Definition at line 74 of file result.hpp.
|
inline |
Get the raw string value.
Definition at line 77 of file result.hpp.