All documents for SQLAlchemy provide INSERT and UPDATE examples using an instance of a local table (e.g. tablename.update() ...)
It is difficult to do this using declarative syntax, I need to refer to Base.metadata.tables["tablename"] to get a link to the table.
Should I do it differently? Is there any other syntax for INSERT and UPDATE recommended when using declarative syntax? Should I just switch to the old way?
python sql sqlalchemy
Robt
source share