Exemplo n.º 1
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
Exemplo n.º 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
Exemplo n.º 3
0
def remove_structure_collection(database):
    """Completely removes the structure collection from storage.
    """
    return structure_dao.remove_structure_collection(database)
Exemplo n.º 4
0
def remove_structure_collection(database):
    """Completely removes the structure collection from storage.
    """
    return structure_dao.remove_structure_collection(database)