mfreeborn / fastapi-sqlalchemy

Adds simple SQLAlchemy support to FastAPI
MIT License
594 stars 34 forks source link

If I have two or more databases that need to be connected, how should I use them? #48

Closed xhatt closed 4 months ago

xhatt commented 9 months ago

First of all, thank you for opening up the middleware. I have a question. If I have two or more databases that need to be connected, how should I use them?

hadrien commented 4 months ago

I had the same issue and switched to FastAPI-SQLA which allows configuring several DBs -> https://github.com/dialoguemd/fastapi-sqla/#multi-session-support

xhatt commented 4 months ago

I had the same issue and switched to FastAPI-SQLA which allows configuring several DBs -> https://github.com/dialoguemd/fastapi-sqla/#multi-session-support

Okay, thank you very much, even though I don't need this yet