13 #ifndef PQXX_H_NOTIFICATION
14 #define PQXX_H_NOTIFICATION
16 #if !defined(PQXX_HEADER_PRE)
17 # error "Include libpqxx headers as <pqxx/header>, not <pqxx/header.hxx>."
22 #include "pqxx/types.hxx"
64 [[deprecated(
"Use pqxx::connection::listen() instead.")]]
67 [[deprecated(
"Use pqxx::connection::listen() instead.")]]
70 [[deprecated(
"Use pqxx::connection::listen() instead.")]]
76 [[nodiscard]] std::string
const &
channel() const & {
return m_channel; }
86 virtual void operator()(std::string
const &payload,
int backend_pid) = 0;
89 connection &conn() const noexcept {
return m_conn; }
93 std::string m_channel;
std::string const & channel() const &
The channel that this receiver listens on.
Definition: notification.hxx:76
Definition: notification.hxx:56
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26
Connection to a database.
Definition: connection.hxx:278