def close(self):
        self.validate_thread_sharing()
        self.run_on_commit = []

        # Don't call validate_no_atomic_block() to avoid making it difficult
        # to get rid of a connection in an invalid state. The next connect()
        # will reset the transaction state anyway.
        if self.closed_in_transaction or self.connection is None:
            return
        try:
            self._close()
        finally:
            if self.in_atomic_block:
                self.closed_in_transaction = True
                self.needs_rollback = True
            else:
                self.connection = None

    # ##### Backend-specific savepoint management methods #####
Destroys the current OAuthClient
dataset/ETHPy150Open django/django/django/db/backends/base/base.py/BaseDatabaseWrapper.close--crossover with--dataset/ETHPy150Open martyzz1/heroku3.py/heroku3/models/oauth.py/OAuthClient.delete