Re: [sqlalchemy] Changing Type of an ORM record

2021-05-03 Thread Mike Bayer
On Mon, May 3, 2021, at 12:31 PM, Richard Damon wrote: > > > Ok, understand. Maybe my application is a bit unusual, but it seems I > will be doing this a LOT. > that's fine, you'll make a function to do what you need and use it everywhere > > In my case nothing will REALLY be the base >

Re: [sqlalchemy] Changing Type of an ORM record

2021-05-03 Thread Richard Damon
On 5/2/21 6:34 PM, Mike Bayer wrote: > > > On Sun, May 2, 2021, at 4:44 PM, Richard Damon wrote: >> I asked this a bit ago, but never got an answer, so trying again wording >> a bit different to see if I can get help. > > sorry if this got missed. > >> >> The question is, given an existing record

Re: [sqlalchemy] Changing Type of an ORM record

2021-05-02 Thread Mike Bayer
On Sun, May 2, 2021, at 4:44 PM, Richard Damon wrote: > I asked this a bit ago, but never got an answer, so trying again wording > a bit different to see if I can get help. sorry if this got missed. > > The question is, given an existing record for an 'Employee', how to I > change it from an

[sqlalchemy] Changing Type of an ORM record

2021-05-02 Thread Richard Damon
I asked this a bit ago, but never got an answer, so trying again wording a bit different to see if I can get help. Going to use the example from the documentation, as hopefully that will give me the hints needed to handle my more complicate case. Using SQLAlchemy 1.4 ORM and Joined Table