コード例 #1
0
def remove_badge(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Badge, row_id)
コード例 #2
0
def unlike_by_picture_id(row_id):
    tf.remove_row_by_id(PictureLike, row_id, 'PictureId')
コード例 #3
0
def remove_user_by_email(row_id):
    return tf.remove_row_by_id(User, row_id, col_name='Email')
コード例 #4
0
def remove_user_by_username(username):
    return tf.remove_row_by_id(User, username, col_name='Username')
コード例 #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')
コード例 #6
0
def remove_user_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(User, row_id)
コード例 #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")
コード例 #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")
コード例 #9
0
def remove_picture_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Picture, row_id)
コード例 #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")
コード例 #11
0
def remove_category_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Category, row_id)
コード例 #12
0
def remove_comment_like_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(CommentLike, row_id)
コード例 #13
0
def remove_review_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Review, row_id)
コード例 #14
0
def unlike_by_user_id(row_id):
    tf.remove_row_by_id(PictureLike, row_id, 'UserId')
コード例 #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')
コード例 #16
0
def remove_location_by_id(row_id):
    if tf.validate_number(row_id):
        return tf.remove_row_by_id(Location, row_id)
コード例 #17
0
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")