@classmethod<EOL><INDENT>def from_update(cls, update):<DEDENT>
expressions = []<EOL>if update.set_expr:<EOL><INDENT>expressions.append(UpdateSetMany.from_clause(update.set_expr))<EOL><DEDENT>if update.remove_expr:<EOL><INDENT>expressions.append(UpdateRemove.from_clause(update.remove_expr))<EOL><DEDENT>if update.add_expr:<EOL><INDENT>expressions.append(UpdateAdd.from_clause(update.add_expr))<EOL><DEDENT>if update.delete_expr:<EOL><INDENT>expressions.append(UpdateDelete.from_clause(update.delete_expr))<EOL><DEDENT>return cls(expressions)<EOL>
Factory for creating an Update expression