relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::connection::AsyncStreamingResultSet< DataSource >::async_streaming_iterator Class Reference

Iterator that reads data on demand asynchronously. More...

#include <relx/connection/postgresql_async_streaming_source.hpp>

Public Member Functions

 async_streaming_iterator (DataSource &source, AsyncStreamingResultSet &result_set, bool at_end=false)
 
const auto & operator* () const
 Get the current row (must be called after advance())
 
boost::asio::awaitable< void > advance ()
 Advance to the next row asynchronously.
 
bool is_at_end () const
 

Detailed Description

template<typename DataSource>
class relx::connection::AsyncStreamingResultSet< DataSource >::async_streaming_iterator

Iterator that reads data on demand asynchronously.

Definition at line 129 of file postgresql_async_streaming_source.hpp.

Constructor & Destructor Documentation

◆ async_streaming_iterator()

template<typename DataSource >
relx::connection::AsyncStreamingResultSet< DataSource >::async_streaming_iterator::async_streaming_iterator ( DataSource &  source,
AsyncStreamingResultSet result_set,
bool  at_end = false 
)
inline

Definition at line 131 of file postgresql_async_streaming_source.hpp.

Member Function Documentation

◆ advance()

template<typename DataSource >
boost::asio::awaitable< void > relx::connection::AsyncStreamingResultSet< DataSource >::async_streaming_iterator::advance ( )
inline

Advance to the next row asynchronously.

Definition at line 139 of file postgresql_async_streaming_source.hpp.

◆ is_at_end()

template<typename DataSource >
bool relx::connection::AsyncStreamingResultSet< DataSource >::async_streaming_iterator::is_at_end ( ) const
inline

Definition at line 154 of file postgresql_async_streaming_source.hpp.

◆ operator*()

template<typename DataSource >
const auto & relx::connection::AsyncStreamingResultSet< DataSource >::async_streaming_iterator::operator* ( ) const
inline

Get the current row (must be called after advance())

Definition at line 136 of file postgresql_async_streaming_source.hpp.


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