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
20 enum class Severity { kLog, kDebug, kInfo, kNotice, kWarning, kError, kFatal, kPanic };
22 explicit Message(detail::ResultWrapperPtr);
24 std::string GetMessage()
const;
25 std::string GetPrimary()
const;
26 std::string GetDetail()
const;
27 Severity GetSeverity()
const;
28 std::string GetSeverityString()
const;
31 std::string GetSchema()
const;
32 std::string GetTable()
const;
33 std::string GetColumn()
const;
34 std::string GetDatatype()
const;
35 std::string GetConstraint()
const;
37 logging::LogExtra GetLogExtra()
const;
42 static Severity SeverityFromString(std::string_view);
45 detail::ResultWrapperPtr res_;