[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

Re: [sqlalchemy] SelectIn loader joining on parent table

2017-08-16 Thread Mike Bayer
On Wed, Aug 16, 2017 at 7:48 AM, Aidan Kane wrote: > I'm sure there's a great reason for this, but why does the new selectin > loader join the parent table and use the parent ids instead of using the > foreign key directly on the child table? Is it just the complexity of >

[sqlalchemy] SelectIn loader joining on parent table

2017-08-16 Thread Aidan Kane
I'm sure there's a great reason for this, but why does the new selectin loader join the parent table and use the parent ids instead of using the foreign key directly on the child table? Is it just the complexity of knowing what to filter for / how to build the criteria for the selectin query?