|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
Lazy result set that defers row parsing until accessed. More...
#include <relx/results/lazy_result.hpp>
Classes | |
| class | iterator |
| Iterator for lazy rows. More... | |
Public Member Functions | |
| LazyResultSet (std::string raw_data) | |
| Constructs a lazy result set with raw data. | |
| size_t | size () const |
| Get the number of rows (requires parsing row boundaries) | |
| bool | empty () const |
| Check if the result set is empty. | |
| ResultProcessingResult< LazyRow > | at (size_t index) const |
| Get a row by index (parsed on demand) | |
| LazyRow | operator[] (size_t index) const |
| Access a row by index using the subscript operator. | |
| const std::vector< std::string > & | column_names () const |
| Get the column names. | |
| iterator | begin () const |
| iterator | end () const |
| ResultProcessingResult< ResultSet > | to_result_set () const |
| Transform to regular ResultSet if needed. | |
Lazy result set that defers row parsing until accessed.
Definition at line 237 of file lazy_result.hpp.
|
inline |
Constructs a lazy result set with raw data.
Definition at line 240 of file lazy_result.hpp.
|
inline |
Get a row by index (parsed on demand)
Definition at line 252 of file lazy_result.hpp.
|
inline |
Definition at line 308 of file lazy_result.hpp.
|
inline |
Get the column names.
Definition at line 276 of file lazy_result.hpp.
|
inline |
Check if the result set is empty.
Definition at line 249 of file lazy_result.hpp.
|
inline |
Definition at line 310 of file lazy_result.hpp.
|
inline |
Access a row by index using the subscript operator.
Definition at line 266 of file lazy_result.hpp.
|
inline |
Get the number of rows (requires parsing row boundaries)
Definition at line 243 of file lazy_result.hpp.
|
inline |
Transform to regular ResultSet if needed.
Definition at line 314 of file lazy_result.hpp.