def create_structure_collection(database, structures=None):
    """Creates a structure collection in mongo, adding
    the passed 1D array of structures to the new collection.
    Returns the newly created structures.
    """
    structure_dao.remove_structure_collection(database)
    created_structures = structure_dao.create_structure_collection(database, structures)
    return created_structures
Exemple #2
0
def create_structure_collection(database, structures=None):
    """Creates a structure collection in mongo, adding
    the passed 1D array of structures to the new collection.
    Returns the newly created structures.
    """
    structure_dao.remove_structure_collection(database)
    created_structures = structure_dao.create_structure_collection(database, structures)
    return created_structures
def remove_structure_collection(database):
    """Completely removes the structure collection from storage.
    """
    return structure_dao.remove_structure_collection(database)
Exemple #4
0
def remove_structure_collection(database):
    """Completely removes the structure collection from storage.
    """
    return structure_dao.remove_structure_collection(database)