I want to write a query like so with SQLAlchemy:
UPDATE mytable
SET
mytext = myvalues.mytext,
myint = myvalues.myint
FROM (
VALUES
(1, 'textA', 99),
(2, 'textB', 88),
...) AS myvalues (mykey, mytext, myint)
WHERE mytable.mykey = myvalues.mykey
Is this kind of thing supported natively in the ORM? Or will I need to use
session.execute() to run raw SQL?
Relevant SO
thread:
http://stackoverflow.com/questions/23002086/does-sqlalchemy-support-update-from-syntax-for-postgres.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.