示例#1
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
示例#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
示例#3
0
def remove_profile_collection(database):
    """Completely removes a profile collection from storage in the specified database.
    """
    return profile_dao.remove_profile_collection(database)
示例#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)