moar events
This commit is contained in:
parent
f11c18f012
commit
0e387f3c06
1 changed files with 8 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue