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