Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::database::QueryAwaiter Struct Reference

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

#include <PostgresCoro.hpp>

Collaboration diagram for orbit::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< PostgresClient > client
 
std::string sql
 
ResultSet result
 
std::vector< std::optional< std::string > > params
 
bool parameterized = false
 

Detailed Description

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

Member Function Documentation

◆ await_ready()

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

◆ await_resume()

ResultSet orbit::database::QueryAwaiter::await_resume ( )
inline

◆ await_suspend()

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

Member Data Documentation

◆ client

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

◆ parameterized

bool orbit::database::QueryAwaiter::parameterized = false

◆ params

std::vector<std::optional<std::string> > orbit::database::QueryAwaiter::params

◆ result

ResultSet orbit::database::QueryAwaiter::result

◆ sql

std::string orbit::database::QueryAwaiter::sql

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