def create_profile_collection(database, profile):
    """Adds the given profile to the database. Returns the newly inserted profile record.
    """
    profile_dao.remove_profile_collection(database)
    profile = profile_dao.create_profile_collection(database, profile)
    return profile
Exemple #2
0
def create_profile_collection(database, profile):
    """Adds the given profile to the database. Returns the newly inserted profile record.
    """
    profile_dao.remove_profile_collection(database)
    profile = profile_dao.create_profile_collection(database, profile)
    return profile
def remove_profile_collection(database):
    """Completely removes a profile collection from storage in the specified database.
    """
    return profile_dao.remove_profile_collection(database)
Exemple #4
0
def remove_profile_collection(database):
    """Completely removes a profile collection from storage in the specified database.
    """
    return profile_dao.remove_profile_collection(database)