def __update(self, row):
expr = self.__table.update().values(row)<EOL>for key in self.__update_keys:<EOL><INDENT>expr = expr.where(getattr(self.__table.c, key) == row[key])<EOL><DEDENT>if self.__autoincrement:<EOL><INDENT>expr = expr.returning(getattr(self.__table.c, self.__autoincrement))<EOL><DEDENT>res = expr.execute()<EOL>if res.rowcount > <NUM_LIT:0>:<EOL><INDENT>if self.__autoincrement:<EOL><INDENT>first = next(iter(res))<EOL>last_row_id = first[<NUM_LIT:0>]<EOL>return last_row_id<EOL><DEDENT>return <NUM_LIT:0><EOL><DEDENT>return None<EOL>
Update rows in table