when using SqlAlchemy Core (not using Session/ORM)?
I have quite a few tables with composite primary keys that can use it
for optimization.
At the moment what I have is quite ghetto, below is a contrive example
of it:
stmt = str(user_table.insert().values(email=email, name=name))
stmt += " ON DUPLICATE KEY UPDATE name=%s"
engine.execute(stmt, email, name, name)
NOTE: I believe this is MySQL specific.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.