9#include <userver/logging/log_extra.hpp>
11#include <userver/storages/postgres/postgres_fwd.hpp>
12#include <userver/storages/postgres/sql_state.hpp>
14USERVER_NAMESPACE_BEGIN
31 explicit Message(detail::ResultWrapperPtr);
33 std::string GetMessage()
const;
34 std::string GetPrimary()
const;
35 std::string GetDetail()
const;
36 Severity GetSeverity()
const;
37 std::string GetSeverityString()
const;
40 std::string GetSchema()
const;
41 std::string GetTable()
const;
42 std::string GetColumn()
const;
43 std::string GetDatatype()
const;
44 std::string GetConstraint()
const;
46 logging::LogExtra GetLogExtra()
const;
51 static Severity SeverityFromString(std::string_view);
54 detail::ResultWrapperPtr res_;