[sqlalchemy] Re: column_property() caching

2007-12-04 Thread Marco Mariani
Vladimir Iliev wrote: hi, is it possible to add a non-caching column_property() to my mapping? You can use expire() on a single column, so you could proxy that column with a @property that also expires it. -- This e-mail (and any attachment(s)) is strictly confidential and for use only

[sqlalchemy] Re: column_property() caching

2007-12-04 Thread Michael Bayer
the easiest way to do this would be to issue the SQL yourself...below uses the object_session() and object_mapper() functions to ensure that the current connection, if any, is used (you could also just say myengine.execute() if that didnt matter): class MyClass(object): @property def