I can't seem to find a good answer to this. What is the correct way in SQLAlchemy (declarative) to connect two SQLite databases? I also need to make a relation between two tables in these two seperate databases.
Edit: It is some sort of commenting system. I already have a database with data (posts) and I'm now building a social Flask webapplication around it where users can register and comment on these posts. Preferably, I would like to keep the code for the posts database as unchanged as possible so I can use the same code for the web and desktop application.
This is how it looks basicly:
database1 (created and controlled by flask-sqlalchemy):
- users
- comments
database2 (created and controlled by SQLAlchemy):
- posts