13 std::shared_ptr<PostgresClient>
client;
18 client->connect([
this, h](
bool s) {
40 std::shared_ptr<PostgresClient>
client;
Represents a generic, unified result set from a database query.
Definition ResultSet.hpp:111
Definition ConnectionPool.hpp:10
QueryAwaiter query_async(std::shared_ptr< PostgresClient > client, const std::string &sql)
Creates an awaiter for executing a query on a PostgresClient.
Definition PostgresCoro.hpp:65
ConnectAwaiter connect_async(std::shared_ptr< PostgresClient > client)
Creates an awaiter for connecting a PostgresClient.
Definition PostgresCoro.hpp:32
A coroutine awaiter for connecting a PostgresClient asynchronously.
Definition PostgresCoro.hpp:12
bool await_resume()
Definition PostgresCoro.hpp:23
bool await_ready() const noexcept
Definition PostgresCoro.hpp:16
bool success
Definition PostgresCoro.hpp:14
void await_suspend(std::coroutine_handle<> h)
Definition PostgresCoro.hpp:17
std::shared_ptr< PostgresClient > client
Definition PostgresCoro.hpp:13
A coroutine awaiter for executing a query on a PostgresClient asynchronously.
Definition PostgresCoro.hpp:39
std::shared_ptr< PostgresClient > client
Definition PostgresCoro.hpp:40
bool await_ready() const noexcept
Definition PostgresCoro.hpp:44
std::string sql
Definition PostgresCoro.hpp:41
ResultSet await_resume()
Definition PostgresCoro.hpp:51
ResultSet result
Definition PostgresCoro.hpp:42
void await_suspend(std::coroutine_handle<> h)
Definition PostgresCoro.hpp:45