(self)
Delete the underlying database file. Use with care.
Delete the underlying database file. Use with care.
Delete the underlying database file . Use with care .
def terminate(self):
        """Delete the underlying database file. Use with care."""
        if self.flag == 'r':
            raise RuntimeError('Refusing to terminate read-only SqliteDict')

        self.close()

        if self.filename == ':memory:':
            return

        logger.info("deleting %s" % self.filename)
        try:
            if os.path.isfile(self.filename):
                os.remove(self.filename)
        except (OSError, IOError):
            logger.exception("failed to delete %s" % (self.filename))
def terminate ( self ) : if self . flag == 'r' : raise RuntimeError ( 'Refusing to terminate read-only SqliteDict' ) self . close ( ) if self . filename == ':memory:' : return logger . info ( "deleting %s" % self . filename ) try : if os . path . isfile ( self . filename ) : os . remove ( self . filename ) except ( OSError , IOError ) : logger . exception ( "failed to delete %s" % ( self . filename ) )