예제 #1
0
파일: dbpool.py 프로젝트: xdrew/twoost
 def connect(self):
     new_connection = self.threadID() not in self.connections
     conn = ConnectionPool.connect(self)
     if new_connection:
         self.prepare_connection(conn)
     return conn
예제 #2
0
파일: dbpool.py 프로젝트: wgnet/twoost
 def connect(self):
     new_connection = self.threadID() not in self.connections
     conn = ConnectionPool.connect(self)
     if new_connection:
         self.prepare_connection(conn)
     return conn
예제 #3
0
 def connect(self) -> Connection:
     connection = ConnectionPool.connect(self)
     connection.ping(reconnect=True)
     return connection