relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::pgsql_async_wrapper Namespace Reference

Classes

class  Connection
 
struct  PgError
 
class  PreparedStatement
 
class  Result
 

Typedefs

template<typename T >
using PgResult = std::expected< T, PgError >
 

Enumerations

enum class  IsolationLevel { ReadUncommitted , ReadCommitted , RepeatableRead , Serializable }
 

Functions

std::string format_error (const PgError &error)
 Format a PgError for exception messages.
 

Typedef Documentation

◆ PgResult

template<typename T >
using relx::pgsql_async_wrapper::PgResult = typedef std::expected<T, PgError>

Definition at line 59 of file pgsql_async_wrapper.hpp.

Enumeration Type Documentation

◆ IsolationLevel

Enumerator
ReadUncommitted 
ReadCommitted 
RepeatableRead 
Serializable 

Definition at line 134 of file pgsql_async_wrapper.hpp.

Function Documentation

◆ format_error()

std::string relx::pgsql_async_wrapper::format_error ( const PgError error)
inline

Format a PgError for exception messages.

Definition at line 53 of file pgsql_async_wrapper.hpp.