src/pds_doi_service/core/db/doi_database.py
def close_database(self):
        """Close connection to the SQLite database."""
        logger.debug("Closing database %s", self.m_database_name)

        if self.m_my_conn:
            self.m_my_conn.close()

            # Set m_my_conn to None to signify that there is no connection.
            self.m_my_conn = None
        else:
            logger.warn("Database connection to %s has not been started or is already closed", self.m_database_name)
Close connection to the SQLite database.
Close connection to the SQLite database.
Close connection to the SQLite database .
def close_database(self):
        logger.debug("Closing database %s", self.m_database_name)
        if self.m_my_conn:
            self.m_my_conn.close()
            self.m_my_conn = None
        else:
            logger.warn("Database connection to %s has not been started or is already closed", self.m_database_name)
def close_database ( self ) : logger . debug ( "Closing database %s" , self . m_database_name ) if self . m_my_conn : self . m_my_conn . close ( ) self . m_my_conn = None else : logger . warn ( "Database connection to %s has not been started or is already closed" , self . m_database_name )
Close connection to the SQLite database.
Close connection to the SQLite database .
"""Close connection to the SQLite database.""" # Set m_my_conn to None to signify that there is no connection.
self