Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
database::QueryAwaiter Struct Reference

A coroutine awaiter for executing a query on a PostgresClient asynchronously. More...

#include <PostgresCoro.hpp>

Collaboration diagram for database::QueryAwaiter:

Public Member Functions

bool await_ready () const noexcept
 
void await_suspend (std::coroutine_handle<> h)
 
ResultSet await_resume ()
 

Public Attributes

std::shared_ptr< PostgresClientclient
 
std::string sql
 
ResultSet result
 

Detailed Description

A coroutine awaiter for executing a query on a PostgresClient asynchronously.

Member Function Documentation

◆ await_ready()

bool database::QueryAwaiter::await_ready ( ) const
inlinenoexcept

◆ await_resume()

ResultSet database::QueryAwaiter::await_resume ( )
inline

◆ await_suspend()

void database::QueryAwaiter::await_suspend ( std::coroutine_handle<>  h)
inline

Member Data Documentation

◆ client

std::shared_ptr<PostgresClient> database::QueryAwaiter::client

◆ result

ResultSet database::QueryAwaiter::result

◆ sql

std::string database::QueryAwaiter::sql

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