mik3y / django-db-multitenant

A simple multi-tenancy solution for Django apps.
Other
155 stars 34 forks source link

[Feature Request] SQLite 3 support #32

Open victorgveloso opened 2 years ago

victorgveloso commented 2 years ago

Challenges

SQLite 3 does not support multi schemas/databases. Implementing a SQLite 3 database backend would require a novel approach.

Unfortunately, solely executing "USE" through the database cursor would not work for SQLite 3.

Proposed solution

At first thought, I planned to prepend the tenant's name to DATABASES["default"]["NAME"].