def connect(self): new_connection = self.threadID() not in self.connections conn = ConnectionPool.connect(self) if new_connection: self.prepare_connection(conn) return conn
def connect(self): new_connection = self.threadID() not in self.connections conn = ConnectionPool.connect(self) if new_connection: self.prepare_connection(conn) return conn
def connect(self) -> Connection: connection = ConnectionPool.connect(self) connection.ping(reconnect=True) return connection