Re: [sqlalchemy] Deferred column getting unintentionally deferred

2017-09-20 Thread Neena Parikh
Great, thanks for the follow-up! We've found a workaround using inspect(item).expired_attributes.clear() after calling through to make_transient_to_detached(item). Best, Neena On Tuesday, September 19, 2017 at 1:38:19 PM UTC-7, Mike Bayer wrote: > > On Tue, Sep 19, 2017 at 1:16 PM,

[sqlalchemy] Deferred column getting unintentionally deferred

2017-09-19 Thread Neena Parikh
Hi there, After implementing the solutions for raising on column usages brought up at https://groups.google.com/forum/#!topic/sqlalchemy/Lbyq8Co95mQ, I've come across an issue where a deferred column is being loaded by default after a series of function calls. Here's the minimal repro I could

Re: [sqlalchemy] Raising on usage of attribute in SQL queries

2017-08-18 Thread Neena Parikh
9:53 AM UTC-7, Mike Bayer wrote: > > On Wed, Aug 16, 2017 at 7:35 PM, Neena Parikh <ne...@benchling.com > > wrote: > > Hi there! > > > > I'm looking to create a helper or decorator function that will enable us > to > > "mark" a column or tabl

[sqlalchemy] Raising on usage of attribute in SQL queries

2017-08-16 Thread Neena Parikh
Hi there! I'm looking to create a helper or decorator function that will enable us to "mark" a column or table as “unused”, and raise an error if that column or table is queried for in SQL. Context The motivation behind this is to help us catch accidental references to deleted columns in our