Re: [sqlalchemy] best ways to preserve and analyze detached/unbound items

2018-05-02 Thread Mike Bayer
yes, persistent_to_detached: http://docs.sqlalchemy.org/en/latest/orm/session_events.html#persistent-to-detached On Tue, May 1, 2018 at 11:18 PM, Jonathan Vanasco wrote: > Thanks for all this help, Mike! > > On Tuesday, May 1, 2018 at 8:56:35 PM UTC-4, Mike Bayer wrote: >> >>

Re: [sqlalchemy] best ways to preserve and analyze detached/unbound items

2018-05-01 Thread Jonathan Vanasco
Thanks for all this help, Mike! On Tuesday, May 1, 2018 at 8:56:35 PM UTC-4, Mike Bayer wrote: > > at what "moment in time"?I thought you might mean when they are > expired from the Session, easy enough use the expire event > >

Re: [sqlalchemy] best ways to preserve and analyze detached/unbound items

2018-05-01 Thread Mike Bayer
On Tue, May 1, 2018 at 2:13 PM, Jonathan Vanasco wrote: > I have a debugging toolbar on a web panel that occasionally receives > SqlAlchemy objects, which are unbound/detached by their nature. > > Is there a way I can preserve their contents as a dict (at that moment in >

[sqlalchemy] best ways to preserve and analyze detached/unbound items

2018-05-01 Thread Jonathan Vanasco
I have a debugging toolbar on a web panel that occasionally receives SqlAlchemy objects, which are unbound/detached by their nature. Is there a way I can preserve their contents as a dict (at that moment in time) which can be iterated/inspected? Looking at