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

#include <relx/connection/pgsql_async_wrapper.hpp>

Public Member Functions

 Result ()=default
 
 Result (PGresult *res)
 
 ~Result ()
 
 Result (const Result &)=delete
 
Resultoperator= (const Result &)=delete
 
 Result (Result &&other) noexcept
 
Resultoperator= (Result &&other) noexcept
 
void clear ()
 
bool ok () const
 
ExecStatusType status () const
 
const char * error_message () const
 
int rows () const
 
int columns () const
 
const char * field_name (int col) const
 
Oid field_type (int col) const
 
int field_size (int col) const
 
int field_number (const char *name) const
 
bool is_null (int row, int col) const
 
const char * get_value (int row, int col) const
 
int get_length (int row, int col) const
 
PGresultget () const
 
 operator bool () const
 

Detailed Description

Definition at line 62 of file pgsql_async_wrapper.hpp.

Constructor & Destructor Documentation

◆ Result() [1/4]

relx::pgsql_async_wrapper::Result::Result ( )
default

◆ Result() [2/4]

relx::pgsql_async_wrapper::Result::Result ( PGresult res)
inlineexplicit

Definition at line 69 of file pgsql_async_wrapper.hpp.

◆ ~Result()

relx::pgsql_async_wrapper::Result::~Result ( )
inline

Definition at line 71 of file pgsql_async_wrapper.hpp.

◆ Result() [3/4]

relx::pgsql_async_wrapper::Result::Result ( const Result )
delete

◆ Result() [4/4]

relx::pgsql_async_wrapper::Result::Result ( Result &&  other)
inlinenoexcept

Definition at line 76 of file pgsql_async_wrapper.hpp.

Member Function Documentation

◆ clear()

void relx::pgsql_async_wrapper::Result::clear ( )
inline

Definition at line 87 of file pgsql_async_wrapper.hpp.

◆ columns()

int relx::pgsql_async_wrapper::Result::columns ( ) const
inline

Definition at line 110 of file pgsql_async_wrapper.hpp.

◆ error_message()

const char * relx::pgsql_async_wrapper::Result::error_message ( ) const
inline

Definition at line 104 of file pgsql_async_wrapper.hpp.

◆ field_name()

const char * relx::pgsql_async_wrapper::Result::field_name ( int  col) const
inline

Definition at line 112 of file pgsql_async_wrapper.hpp.

◆ field_number()

int relx::pgsql_async_wrapper::Result::field_number ( const char *  name) const
inline

Definition at line 118 of file pgsql_async_wrapper.hpp.

◆ field_size()

int relx::pgsql_async_wrapper::Result::field_size ( int  col) const
inline

Definition at line 116 of file pgsql_async_wrapper.hpp.

◆ field_type()

Oid relx::pgsql_async_wrapper::Result::field_type ( int  col) const
inline

Definition at line 114 of file pgsql_async_wrapper.hpp.

◆ get()

PGresult * relx::pgsql_async_wrapper::Result::get ( ) const
inline

Definition at line 128 of file pgsql_async_wrapper.hpp.

◆ get_length()

int relx::pgsql_async_wrapper::Result::get_length ( int  row,
int  col 
) const
inline

Definition at line 126 of file pgsql_async_wrapper.hpp.

◆ get_value()

const char * relx::pgsql_async_wrapper::Result::get_value ( int  row,
int  col 
) const
inline

Definition at line 122 of file pgsql_async_wrapper.hpp.

◆ is_null()

bool relx::pgsql_async_wrapper::Result::is_null ( int  row,
int  col 
) const
inline

Definition at line 120 of file pgsql_async_wrapper.hpp.

◆ ok()

bool relx::pgsql_async_wrapper::Result::ok ( ) const
inline

Definition at line 94 of file pgsql_async_wrapper.hpp.

◆ operator bool()

relx::pgsql_async_wrapper::Result::operator bool ( ) const
inline

Definition at line 130 of file pgsql_async_wrapper.hpp.

◆ operator=() [1/2]

Result & relx::pgsql_async_wrapper::Result::operator= ( const Result )
delete

◆ operator=() [2/2]

Result & relx::pgsql_async_wrapper::Result::operator= ( Result &&  other)
inlinenoexcept

Definition at line 78 of file pgsql_async_wrapper.hpp.

◆ rows()

int relx::pgsql_async_wrapper::Result::rows ( ) const
inline

Definition at line 108 of file pgsql_async_wrapper.hpp.

◆ status()

ExecStatusType relx::pgsql_async_wrapper::Result::status ( ) const
inline

Definition at line 102 of file pgsql_async_wrapper.hpp.


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