示例#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
示例#2
0
文件: dbapi.py 项目: zeha/pg8000
 def __init__(self, **kwargs):
     self.conn = interface.Connection(**kwargs)
     self.notifies = []
     self.notifies_lock = threading.Lock()
     self.conn.NotificationReceived += self._notificationReceived