コード例 #1
0
def update_group(group: Group) -> bool:
    """Updates the information for a group.

    Args:
        group: An object with the information for a group.

    Returns:
        Returns true if the database transaction succeeded,
        otherwise returns false.
    """
    return update_instance(group)
コード例 #2
0
def update_user(user: User) -> bool:
    """Updates an user's information in the database.

    Args:
        user: An object containing an user's information.

    Returns:
        Returns true if the database transaction succeeded,
        otherwise returns false.
    """
    return update_instance(user)
コード例 #3
0
def update_employee(employee: Employee) -> bool:
    """Updates an employee's information in the database.

    Args:
        employee: An object containing an employee's information.

    Returns:
        Returns true if the database transaction succeeded,
        otherwise returns false.
    """
    return update_instance(employee)
コード例 #4
0
def update_role(role: Role) -> bool:
    """Updates the information for a role.

    Args:
        role: An object with the information for a role.

    Returns:
        Returns true if the database transaction succeeded,
        otherwise returns false.
    """
    return update_instance(role)
コード例 #5
0
def update_app(app: App) -> bool:
    """Updates the values of an app in the database.

    Args:
        app: An object used to store information on external applications.

    Returns:
        Returns true if the database transaction succeeded,
        otherwise returns false.
    """
    return update_instance(app)