Exemplo 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
Exemplo n.º 2
0
Arquivo: dbapi.py Projeto: zeha/pg8000
 def __init__(self, **kwargs):
     self.conn = interface.Connection(**kwargs)
     self.notifies = []
     self.notifies_lock = threading.Lock()
     self.conn.NotificationReceived += self._notificationReceived