def generate_server_args_str(server_args):
    """ Create a server args string to pass to the DBMS """
    server_args_arr = []
    for attribute, value in server_args.items():
        value = str(value).lower() if isinstance(value, bool) else value
        value = f'={value}' if value != None else ''
        arg = f'-{attribute}{value}'
        server_args_arr.append(arg)

    return ' '.join(server_args_arr)