Update
Update a row.
1. Select
First, select a row and store it in a variable. Read more about selecting here.
my_row = MyModel.db.get(5)
2. Update
You update a row's columns like this:
...
my_row.column 1 = new value
my_row.column 2 = new value
...
3. Save
You need to save/commit your changes whenever you've updated a row.
...
db.save()
Last updated