|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
#include <orbit/legacy_namespaces.hpp>#include <orbit/database/PostgresClient.hpp>#include <coroutine>#include <memory>#include <string>#include <optional>#include <vector>
Go to the source code of this file.
Classes | |
| struct | orbit::database::ConnectAwaiter |
| A coroutine awaiter for connecting a PostgresClient asynchronously. More... | |
| struct | orbit::database::QueryAwaiter |
| A coroutine awaiter for executing a query on a PostgresClient asynchronously. More... | |
| struct | orbit::database::ResultAwaiter |
| Awaits any PostgresClient operation that reports a ResultSet. More... | |
Namespaces | |
| namespace | orbit |
| namespace | orbit::database |
Functions | |
| ConnectAwaiter | orbit::database::connect_async (std::shared_ptr< PostgresClient > client) |
| Creates an awaiter for connecting a PostgresClient. | |
| QueryAwaiter | orbit::database::query_async (std::shared_ptr< PostgresClient > client, const std::string &sql) |
| Creates an awaiter for executing a query on a PostgresClient. | |
| QueryAwaiter | orbit::database::query_async (std::shared_ptr< PostgresClient > client, const std::string &sql, std::vector< std::optional< std::string > > params) |
Runs a statement with $1, $2, ... placeholders bound to params. | |
| ResultAwaiter | orbit::database::execute_async (std::shared_ptr< PostgresClient > client, std::string sql, std::vector< std::optional< std::string > > params={}) |
| Runs a statement through the prepared-statement cache (PostgresClient::execute). | |
| ResultAwaiter | orbit::database::begin_async (std::shared_ptr< PostgresClient > client) |
| Transaction control for coroutines. | |
| ResultAwaiter | orbit::database::commit_async (std::shared_ptr< PostgresClient > client) |
| ResultAwaiter | orbit::database::rollback_async (std::shared_ptr< PostgresClient > client) |