13#ifndef PQXX_H_NOTIFICATION
14#define PQXX_H_NOTIFICATION
16#include "pqxx/compiler-public.hxx"
17#include "pqxx/compiler-internal-pre.hxx"
21#include "pqxx/types.hxx"
69 const std::string &
channel()
const {
return m_channel; }
79 virtual void operator()(
const std::string &payload,
int backend_pid) =0;
86 std::string m_channel;
90#include "pqxx/compiler-internal-post.hxx"
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:26
connection_base abstract base class; represents a connection to a database.
Definition: connection_base.hxx:140
Definition: notification.hxx:56
notification_receiver(const notification_receiver &)=delete
connection_base & conn() const noexcept
Definition: notification.hxx:82
const std::string & channel() const
The channel that this receiver listens on.
Definition: notification.hxx:69
virtual void operator()(const std::string &payload, int backend_pid)=0
Overridable: action to invoke when notification arrives.
notification_receiver & operator=(const notification_receiver &)=delete