Esempio n. 1
0
def extract_server_options(server, parsed_args):
    if isinstance(server, MongodServer):
        return extract_mongo_exe_options(parsed_args, SUPPORTED_MONGOD_OPTIONS)
    elif isinstance(server, MongosServer):
        return extract_mongo_exe_options(parsed_args, SUPPORTED_MONGOS_OPTIONS)
Esempio n. 2
0
def extract_mongo_restore_options(parsed_args):
    return extract_mongo_exe_options(parsed_args,
                                     SUPPORTED_MONGO_RESTORE_OPTIONS)
Esempio n. 3
0
def extract_server_options(server, parsed_args):
    if isinstance(server, MongodServer):
        return extract_mongo_exe_options(parsed_args, SUPPORTED_MONGOD_OPTIONS)
    elif isinstance(server, MongosServer):
        return extract_mongo_exe_options(parsed_args, SUPPORTED_MONGOS_OPTIONS)
Esempio n. 4
0
def extract_mongo_restore_options(parsed_args):
    return extract_mongo_exe_options(parsed_args,
                                     SUPPORTED_MONGO_RESTORE_OPTIONS)
Esempio n. 5
0
def extract_mongo_shell_options(parsed_args):
    return extract_mongo_exe_options(parsed_args,
                                     SUPPORTED_MONGO_SHELL_OPTIONS)
Esempio n. 6
0
def extract_mongo_dump_options(parsed_args):
    return extract_mongo_exe_options(parsed_args,
                                     SUPPORTED_MONGO_DUMP_OPTIONS)
Esempio n. 7
0
def extract_mongo_shell_options(parsed_args):
    return extract_mongo_exe_options(parsed_args,
                                     SUPPORTED_MONGO_SHELL_OPTIONS)