Re: [sqlalchemy] TypeDecorators don't know which database session to use

2019-05-30 Thread Mike Bayer
On Tue, May 28, 2019, at 9:10 AM, Chris Wilson wrote: > Dear Michael, > > I have discovered a limitation of TypeDecorators (custom column types): any > one that uses the database (e.g. to load objects serialised in a custom way) > has no way to know which database session to use. During

[sqlalchemy] TypeDecorators don't know which database session to use

2019-05-28 Thread Chris Wilson
Dear Michael, I have discovered a limitation of TypeDecorators (custom column types): any one that uses the database (e.g. to load objects serialised in a custom way) has no way to know which database session to use. During initial load one can use a global session object, but expired