|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
Lazy row that defers cell parsing until accessed. More...
#include <relx/results/lazy_result.hpp>
Public Member Functions | |
| LazyRow () | |
| Default constructor. | |
| LazyRow (std::string_view raw_data, std::vector< std::string > column_names={}) | |
| Constructs a lazy row with raw data and column information. | |
| LazyRow (std::string owned_data, std::vector< std::string > column_names) | |
| Constructs a lazy row that owns its data (for streaming) | |
| LazyRow (const LazyRow &other) | |
| Copy constructor. | |
| LazyRow & | operator= (const LazyRow &other) |
| Copy assignment operator. | |
| LazyRow (LazyRow &&other) noexcept | |
| Move constructor. | |
| LazyRow & | operator= (LazyRow &&other) noexcept |
| Move assignment operator. | |
| ResultProcessingResult< LazyCell > | get_cell (size_t index) const |
| Get a cell by index (parsed on demand) | |
| ResultProcessingResult< LazyCell > | get_cell (const std::string &name) const |
| Get a cell by column name. | |
| template<typename T > | |
| ResultProcessingResult< T > | get (size_t index) const |
| Get a typed value by index. | |
| template<typename T > | |
| ResultProcessingResult< T > | get (size_t index, bool allow_numeric_bools) const |
| Get a typed value by index with boolean conversion options. | |
| template<typename T > | |
| ResultProcessingResult< T > | get (const std::string &name) const |
| Get a typed value by column name. | |
| template<typename T > | |
| ResultProcessingResult< T > | get (const std::string &name, bool allow_numeric_bools) const |
| Get a typed value by column name with boolean conversion options. | |
| size_t | size () const |
| Get the number of cells in this row. | |
| const std::vector< std::string > & | column_names () const |
| Get the column names. | |
Lazy row that defers cell parsing until accessed.
Definition at line 57 of file lazy_result.hpp.
|
inline |
Default constructor.
Definition at line 60 of file lazy_result.hpp.
|
inline |
Constructs a lazy row with raw data and column information.
Definition at line 63 of file lazy_result.hpp.
|
inline |
Constructs a lazy row that owns its data (for streaming)
Definition at line 68 of file lazy_result.hpp.
|
inline |
Copy constructor.
Definition at line 75 of file lazy_result.hpp.
|
inlinenoexcept |
Move constructor.
Definition at line 104 of file lazy_result.hpp.
|
inline |
Get the column names.
Definition at line 202 of file lazy_result.hpp.
|
inline |
Get a typed value by column name.
Definition at line 181 of file lazy_result.hpp.
|
inline |
Get a typed value by column name with boolean conversion options.
Definition at line 187 of file lazy_result.hpp.
|
inline |
Get a typed value by index.
Definition at line 165 of file lazy_result.hpp.
|
inline |
Get a typed value by index with boolean conversion options.
Definition at line 171 of file lazy_result.hpp.
|
inline |
Get a cell by column name.
Definition at line 149 of file lazy_result.hpp.
|
inline |
Get a cell by index (parsed on demand)
Definition at line 137 of file lazy_result.hpp.
Copy assignment operator.
Definition at line 86 of file lazy_result.hpp.
Move assignment operator.
Definition at line 117 of file lazy_result.hpp.
|
inline |
Get the number of cells in this row.
Definition at line 196 of file lazy_result.hpp.