Short question: How do I avoid object creation when fetching from an SQL Alchemy-backed object?
Situation: SQL Alchemy: I have an ORM object (declarative base) Objects backed by a table with columns uid, name, etc. Now I would like to create a separate table ObjectProps which uses uid as a foreign, primary key , and then an additional Text field. Additionally, it is setup as a relationship such that ObjectProps has a relationship called props with ObjectProps (uselist=False, backref="object").
Long question: How can I retrieve ObjectProps's Text attribute/column via props without generating the ObjectProps ORM object? I would ideally like to avoid the object creation overhead since ideally I just want to retrieve the column's value without creating an entire ObjectProps.
Presumably the solution will require mixing the ORM Layer with the SQL Layer. Any help appreciated.