Is it possible to have SQLAlchemy use different tables for SELECT and INSERT statements?
I'm using the Declarative/ORM setup with Flask-SQLAlchemy and I am faced with a very large table and a view which shows a subset of that table. Since the logic creating the view is a little hairy, I'd like to avoid replicating it in Python and just have SQLAlchemy redirect all SELECT statements to the view instead of the underlying table. I can't just change __tablename__ entirely because INSERTs and UPDATEs should still go to the table instead of the view. Michael -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.