sonar/database.py
def add(name, cad_tool, hls_tool, sim_tool, board, repo):
        """
        Add a new environment to the database

        Args:
            name (str): Name of environment
            cad_tool (str): Name of CAD tool
            hls_tool (str): Name of HLS tool
            sim_tool (str): Name of SIM tool
            board (str): Name of board
            repo (str): Name of repository
        """
        _dict = {}
        _dict["cad"] = cad_tool
        _dict["hls"] = hls_tool
        _dict["sim"] = sim_tool
        _dict["board"] = board
        _dict["repo"] = repo
        with shelve.open(Constants.SONAR_DB_PATH) as db:
            env = db["env"]
            env[name] = _dict
            db["env"] = env

        Add a new environment to the database

        Args:
            name (str): Name of environment
            cad_tool (str): Name of CAD tool
            hls_tool (str): Name of HLS tool
            sim_tool (str): Name of SIM tool
            board (str): Name of board
            repo (str): Name of repository
        
Add a new environment to the database
Add a new environment to the database
def add(name, cad_tool, hls_tool, sim_tool, board, repo):
        _dict = {}
        _dict["cad"] = cad_tool
        _dict["hls"] = hls_tool
        _dict["sim"] = sim_tool
        _dict["board"] = board
        _dict["repo"] = repo
        with shelve.open(Constants.SONAR_DB_PATH) as db:
            env = db["env"]
            env[name] = _dict
            db["env"] = env
def add ( name , cad_tool , hls_tool , sim_tool , board , repo ) : _dict = { } _dict [ "cad" ] = cad_tool _dict [ "hls" ] = hls_tool _dict [ "sim" ] = sim_tool _dict [ "board" ] = board _dict [ "repo" ] = repo with shelve . open ( Constants . SONAR_DB_PATH ) as db : env = db [ "env" ] env [ name ] = _dict db [ "env" ] = env
Add a new environment to the database
Add a new environment to the database
"""
        Add a new environment to the database

        Args:
            name (str): Name of environment
            cad_tool (str): Name of CAD tool
            hls_tool (str): Name of HLS tool
            sim_tool (str): Name of SIM tool
            board (str): Name of board
            repo (str): Name of repository
        """
name
Name of environment
Name of environment
cad_tool
Name of CAD tool
Name of CAD tool
hls_tool
Name of HLS tool
Name of HLS tool
sim_tool
Name of SIM tool
Name of SIM tool
board
Name of board
Name of board
repo
Name of repository
Name of repository