Relative Content

Tag Archive for pythonsqlalchemy

How to update detached objects efficiently

I’m reading an object, e.g. UserModel, after reading it I convert it to my Business model, User. The service than modifies the user based on some logic. When the process ends I want to update the table with the changes. My initial thought was to convert the User to UserModel and call some sort of session.update(user_model) however this method doesn’t exist.

How to update detached objects efficiently

I’m reading an object, e.g. UserModel, after reading it I convert it to my Business model, User. The service than modifies the user based on some logic. When the process ends I want to update the table with the changes. My initial thought was to convert the User to UserModel and call some sort of session.update(user_model) however this method doesn’t exist.

How to update detached objects efficiently

I’m reading an object, e.g. UserModel, after reading it I convert it to my Business model, User. The service than modifies the user based on some logic. When the process ends I want to update the table with the changes. My initial thought was to convert the User to UserModel and call some sort of session.update(user_model) however this method doesn’t exist.