Dmitigr Pgfe  1.1beta
The modern C++ API to PostgreSQL
Public Member Functions | List of all members
Notification Class Referenceabstract

Represents unprompted notifications from the server. More...

#include <dmitigr/pgfe/notification.hpp>

Inheritance diagram for Notification:
Signal Server_message Message

Public Member Functions

virtual std::int_fast32_t server_pid () const noexcept=0
 
virtual const std::string & channel_name () const noexcept=0
 
virtual const Datapayload () const noexcept=0
 

Detailed Description

Represents unprompted notifications from the server.

Remarks
It should not be confused with the Notice signal.
See also
The NOTIFY SQL command.

Member Function Documentation

◆ channel_name()

virtual const std::string& channel_name ( ) const
pure virtualnoexcept
Returns
The name of the notification channel (which might be any identifier) of the server that produced this notification.

◆ payload()

virtual const Data* payload ( ) const
pure virtualnoexcept
Returns
The payload data.

◆ server_pid()

virtual std::int_fast32_t server_pid ( ) const
pure virtualnoexcept
Returns
The identifier of the server process that produced this notification.

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