(self)
return self._db
lazy reconnect db
        pymysql connections are not thread safe so we can't reuse the same connection from the main check
        :return:
lazy reconnect db
        pymysql connections are not thread safe so we can't reuse the same connection from the main check
        :return:
lazy reconnect db pymysql connections are not thread safe so we can t reuse the same connection from the main check : return :
def _get_db_connection(self):
        """
        lazy reconnect db
        pymysql connections are not thread safe so we can't reuse the same connection from the main check
        :return:
        """
        if not self._db:
            self._db = pymysql.connect(**self._connection_args)
        return self._db
def _get_db_connection ( self ) : if not self . _db : self . _db = pymysql . connect ( * * self . _connection_args ) return self . _db