gui/backend/gui_plugin/core/Db.py
def convert_all_workbench_sql_files_to_sqlite(directory=None):
    """Converts all MySQL SQL file of the gui module to Sqlite.

    Args:
        directory (str): The directory path

    Returns:
        Nothing
    """
    if not directory:
        directory = path.join(path.dirname(
            path.abspath(__file__)), 'db_schema')

    # loop over all *.mysql.sql files in ./db_schema
    for f_name in listdir(directory):
        if path.isfile(path.join(directory, f_name)) and \
                f_name.endswith('.mysql.sql'):
            logger.debug(f'Converting {f_name}...')
            convert_workbench_sql_file_to_sqlite(path.join(directory, f_name))
Converts all MySQL SQL file of the gui module to Sqlite.

    Args:
        directory (str): The directory path

    Returns:
        Nothing
    
Converts all MySQL SQL file of the gui module to Sqlite.
Converts all MySQL SQL file of the gui module to Sqlite .
def convert_all_workbench_sql_files_to_sqlite(directory=None):
    if not directory:
        directory = path.join(path.dirname(
            path.abspath(__file__)), 'db_schema')
    for f_name in listdir(directory):
        if path.isfile(path.join(directory, f_name)) and \
                f_name.endswith('.mysql.sql'):
            logger.debug(f'Converting {f_name}...')
            convert_workbench_sql_file_to_sqlite(path.join(directory, f_name))
def convert_all_workbench_sql_files_to_sqlite ( directory = None ) : if not directory : directory = path . join ( path . dirname ( path . abspath ( __file__ ) ) , 'db_schema' ) for f_name in listdir ( directory ) : if path . isfile ( path . join ( directory , f_name ) ) and f_name . endswith ( '.mysql.sql' ) : logger . debug ( f'Converting {f_name}...' ) convert_workbench_sql_file_to_sqlite ( path . join ( directory , f_name ) )
Converts all MySQL SQL file of the gui module to Sqlite.
Converts all MySQL SQL file of the gui module to Sqlite .
"""Converts all MySQL SQL file of the gui module to Sqlite.

    Args:
        directory (str): The directory path

    Returns:
        Nothing
    """ # loop over all *.mysql.sql files in ./db_schema
None
directory
The directory path
The directory path