original_docstring: Closes the existing database connection and re-opens it.
docstring: Closes the existing database connection and re-opens it.
docstring_tokens: Closes the existing database connection and re - opens it .
code: def reconnect(self):
          """Closes the existing database connection and re-opens it."""
          self.close()
          self._db = pymysql.connect(**self._db_args)
          self._db.autocommit(True)
code_tokens: def reconnect ( self ) : self . close ( ) self . _db = pymysql . connect ( ** self . _db_args ) self . _db . autocommit ( True )
short_docstring: Closes the existing database connection and re-opens it.
short_docstring_tokens: Closes the existing database connection and re - opens it .
comment: """Closes the existing database connection and re-opens it."""