moar events

This commit is contained in:
counterweight 2025-06-14 23:56:13 +02:00
parent f11c18f012
commit 0e387f3c06
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

@ -117,11 +117,17 @@ def main():
cur = conn.cursor()
my_user = User(cursor=cur, name="John", age=95, hair_color="Gray")
my_user.update_user_details(age=96)
my_user.delete_user()
my_other_user = User(cursor=cur, name="Jane", age=3, hair_color="Fire Red")
my_other_user.update_user_details(age=15, hair_color="Golden Blonde")
my_other_user.update_user_details(age=35, hair_color="Touches of gray")
my_immutable_user = User(
cursor=cur, name="The Dude", age=33, hair_color="Muffin Orange"
)
# Commit the transaction
conn.commit()