Esempio n. 1
0
def remove_badge(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Badge, row_id)
def unlike_by_picture_id(row_id):
    tf.remove_row_by_id(PictureLike, row_id, 'PictureId')
Esempio n. 3
0
def remove_user_by_email(row_id):
    return tf.remove_row_by_id(User, row_id, col_name='Email')
Esempio n. 4
0
def remove_user_by_username(username):
    return tf.remove_row_by_id(User, username, col_name='Username')
Esempio n. 5
0
def remove_comment_by_review_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Comment, row_id, 'ReviewId')
Esempio n. 6
0
def remove_user_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(User, row_id)
Esempio n. 7
0
def remove_rating_by_user_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Rating, row_id, "UserId")
Esempio n. 8
0
def remove_user_badge_by_badge_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(UserBadge, row_id, "BadgeId")
Esempio n. 9
0
def remove_picture_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Picture, row_id)
Esempio n. 10
0
def remove_rating_by_location_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Rating, row_id, "LocationId")
Esempio n. 11
0
def remove_category_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Category, row_id)
def remove_comment_like_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(CommentLike, row_id)
Esempio n. 13
0
def remove_review_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Review, row_id)
def unlike_by_user_id(row_id):
    tf.remove_row_by_id(PictureLike, row_id, 'UserId')
Esempio n. 15
0
def remove_comment_by_user_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Comment, row_id, 'UserId')
Esempio n. 16
0
def remove_location_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Location, row_id)
def remove_visited_location_by_user_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(VisitedLocation, row_id, "UserId")