userver: storages::postgres::Message Class Reference
Loading...
Searching...
No Matches
storages::postgres::Message Class Reference

Detailed Description

Definition at line 19 of file message.hpp.

Public Types

enum class  Severity {
  kLog ,
  kDebug ,
  kInfo ,
  kNotice ,
  kWarning ,
  kError ,
  kFatal ,
  kPanic
}
 

Public Member Functions

 Message (detail::ResultWrapperPtr)
 
std::string GetMessage () const
 
std::string GetPrimary () const
 
std::string GetDetail () const
 
Severity GetSeverity () const
 
std::string GetSeverityString () const
 
SqlState GetSqlState () const
 
std::string GetSchema () const
 
std::string GetTable () const
 
std::string GetColumn () const
 
std::string GetDatatype () const
 
std::string GetConstraint () const
 
logging::LogExtra GetLogExtra () const
 
void ThrowException () const
 Throw an exception according to the SQL code.
 

Static Public Member Functions

static Severity SeverityFromString (std::string_view)
 

Static Public Attributes

static constexpr const char * kUnknown = "<unknown>"
 This constant is returned from Message::Get* functions if the PostgreSQL failed retrieve some info.
 

Member Enumeration Documentation

◆ Severity

enum class storages::postgres::Message::Severity
strong

Definition at line 21 of file message.hpp.

Member Data Documentation

◆ kUnknown

constexpr const char* storages::postgres::Message::kUnknown = "<unknown>"
staticconstexpr

This constant is returned from Message::Get* functions if the PostgreSQL failed retrieve some info.

Definition at line 46 of file message.hpp.


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