sonar/database.py
def init():
    """
    Initialize the database with empty sections
    """
    os.makedirs(Constants.SONAR_PATH, exist_ok=True)
    with shelve.open(Constants.SONAR_DB_PATH) as db:
        db["active"] = {
            "cad": None,
            "hls": None,
            "sim": None,
            "board": None,
            "repo": None,
        }
    Tool.clear()
    Env.clear()
    Board.clear()
    Repo.clear()

    Initialize the database with empty sections
    
Initialize the database with empty sections
Initialize the database with empty sections
def init():
    os.makedirs(Constants.SONAR_PATH, exist_ok=True)
    with shelve.open(Constants.SONAR_DB_PATH) as db:
        db["active"] = {
            "cad": None,
            "hls": None,
            "sim": None,
            "board": None,
            "repo": None,
        }
    Tool.clear()
    Env.clear()
    Board.clear()
    Repo.clear()
def init ( ) : os . makedirs ( Constants . SONAR_PATH , exist_ok = True ) with shelve . open ( Constants . SONAR_DB_PATH ) as db : db [ "active" ] = { "cad" : None , "hls" : None , "sim" : None , "board" : None , "repo" : None , } Tool . clear ( ) Env . clear ( ) Board . clear ( ) Repo . clear ( )
Initialize the database with empty sections
Initialize the database with empty sections
"""
    Initialize the database with empty sections
    """