Re: [sqlalchemy] Tracking instance commit status

2016-08-15 Thread Wibowo Arindrarto
Dear everyone, On Thu, Aug 11, 2016 at 11:08 AM Gombas, Gabor < gabor.gom...@morganstanley.com> wrote: > Well, it is somewhat similar to my use case: there is a part (kind of a > library) of the application which may load an object or it may > transparently create one if it did not exist before.

Re: [sqlalchemy] Tracking instance commit status

2016-08-11 Thread Wibowo Arindrarto
u, Aug 11, 2016 at 8:30 AM, Wibowo Arindrarto > <w.arindra...@gmail.com> wrote: > > Dear all, > > > > I have a little problem with getting object states that have been flushed > > but not committed. As far as I understand, SQLAlchemy does not have an > > offi

[sqlalchemy] Tracking instance commit status

2016-08-11 Thread Wibowo Arindrarto
Dear all, I have a little problem with getting object states that have been flushed but not committed. As far as I understand, SQLAlchemy does not have an official object state corresponding to this. However, in my application I need to track such objects. My current approach is to listen to