[sqlalchemy] Re: Postgres composite types and sqlalchemy; Having trouble with events system; Advice requested

2014-07-11 Thread Alexander Solovyov
Понеділок, 4 листопада 2013 р. 01:28:21 UTC+2 користувач Jon Rosebaugh написав: > > I'm trying to implement support for Postgres's composite types, which > essentially let you make a type which is a struct of other types. This > involves several kinds of functionality: > Hey Jon, I've tried to

Re: [sqlalchemy] object changes

2011-02-19 Thread Alexander Solovyov
On Sat, Feb 19, 2011 at 03:28, Michael Bayer wrote: > So there is attributes.get_history(obj, key) as the public API, so you don't > have to mess around with states and dicts and such.   It accepts an argument > "passive" which when passed the symbol attributes.PASSIVE_NO_INITIALIZE will > not

[sqlalchemy] object changes

2011-02-18 Thread Alexander Solovyov
Hi, what's the right way to detemine what changed on an object? I use ext.declarative and mapper extension, which calls code in the end of message after_insert and before_update. It skips M2M relations because .get_history() call loads everything in memory. Is there better way to determine what's