Multi-Tenancy with Multiple Databases and Schemas

How to support both approaches with Flask & SQLAlchemy at once

Photo by Jan Antonin Kolar on Unsplash

In this article, you will learn how to manage multi-tenancy with Flask and SQLAlchemy. You will learn how to do it with many databases for many tenants and many schemas (one database for all tenants and for each tenant a schema). It’s possible to apply both approaches at the…