Esempio n. 1
0
def remove_workflow_collection(harness):
    """Completely blows away the workflow collection. Returns the status of effort.
    Caveat emptor.
    """
    collection = get_workflow_collection(harness)
    status = db_utils.mongo_remove_collection(collection)
    return status
Esempio n. 2
0
def remove_harness_collection():
    """Completely blows away the harness collection. Returns the status of effort.
    Caveat emptor.
    """
    collection = get_harness_collection()
    status = db_utils.mongo_remove_collection(collection)
    return status
Esempio n. 3
0
def remove_component_collection(database):
    """Completely blows away the component collection. Returns the status of effort.
    Caveat emptor.
    """
    collection = get_component_collection(database)
    status = db_utils.mongo_remove_collection(collection)
    return status
Esempio n. 4
0
def remove_structure_collection(database):
    """Completely blows away the structure collection.
    """
    collection = get_structure_collection(database)
    status = db_utils.mongo_remove_collection(collection)
    return status
Esempio n. 5
0
def remove_translator_collection(database):
    """Completely blows away the translator collection.
    """
    collection = get_translator_collection(database)
    status = db_utils.mongo_remove_collection(collection)
    return status
Esempio n. 6
0
def remove_station_collection():
    """Completely blows away the station collection. Returns the status of effort.
    """
    collection = get_station_collection()
    status = db_utils.mongo_remove_collection(collection)
    return status
Esempio n. 7
0
def remove_record_collection(database, collection):
    """Completely blows away the record collection for a given structure.
    """
    collection = get_record_collection(database, collection)
    status = db_utils.mongo_remove_collection(collection)
    return status