notifyexample.py
changeset 104 d8ff52a0390f
parent 93 b72591087495
equal deleted inserted replaced
103:24e94a3da209 104:d8ff52a0390f
     1 #!/usr/bin/env python3
     1 #!/usr/bin/env python3
     2 #
     2 #
     3 # Call "NOTIFY notifyexample" on target DB to wake up this program.
     3 # Call "NOTIFY notifyexample" on target DB to wake up this program.
     4 #
     4 #
     5 
     5 
     6 from pgtoolkit import toolbase, pgmanager
     6 from pydbkit import toolbase, pgmanager
     7 
     7 
     8 
     8 
     9 class NotifyExample(toolbase.SimpleTool):
     9 class NotifyExample(toolbase.SimpleTool):
    10     def __init__(self):
    10     def __init__(self):
    11         toolbase.SimpleTool.__init__(self, name='notifyexample', desc='Sample program for listen/notify.')
    11         toolbase.SimpleTool.__init__(self, name='notifyexample', desc='Sample program for listen/notify.')