def create_translator_collection(database, translators=None): """Creates a translator collection in mongo, adding the passed 1D array of translators to the new collection. Returns the newly created translators. """ translator_dao.remove_translator_collection(database) created_translators = translator_dao.create_translator_collection(database, translators) return created_translators
def remove_translator_collection(database): """Completely removes the translator collection from a database. """ return translator_dao.remove_translator_collection(database)