Skip to content

table.insert().from_select() from one engine bind to another? #6344

Answered by zzzeek
GM1 asked this question in Usage Questions
Discussion options

You must be logged in to vote

SQLAlchemy sends SQL commands to the DBAPI connection and cursor objects using the cursor.execute() method seen here: https://www.python.org/dev/peps/pep-0249/#id15

this cursor and connection is connected to only one database at a time. While most databases support some means of linking two servers together so that you can communicate with multiple database servers over one connection, SQLAlchemy does not have any knowledge of that, but if you do have links between these two servers SQLAlchemy can be made to refer to them, if that's what you want to do.

The use of "bound metadata" here does not affect any of that, all it has done here is made the issue more confusing which is why bound me…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GM1
Comment options

Answer selected by GM1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants