pgcom.listener.Listener.create_notify_function

Listener.create_notify_function(func_name: str, channel: str) None[source]

Create a function called by trigger.

This function generates a notification, which is sending to the specified channel when trigger is fired.

Parameters
  • func_name – Name of the function.

  • channel – Name of the the channel the notification is sending to.