Ejemplo n.º 1
0
 def __init__(self, **kwargs):
     self.conn = interface.Connection(**kwargs)
     self.notifies = []
     self.notifies_lock = threading.Lock()
     self.conn.NotificationReceived += self._notificationReceived
     # Two Phase Commit internal attributes:
     self.__tpc_xid = None
     self.__tpc_prepared = None
Ejemplo n.º 2
0
Archivo: dbapi.py Proyecto: zeha/pg8000
 def __init__(self, **kwargs):
     self.conn = interface.Connection(**kwargs)
     self.notifies = []
     self.notifies_lock = threading.Lock()
     self.conn.NotificationReceived += self._notificationReceived