django-db-multitenant icon indicating copy to clipboard operation
django-db-multitenant copied to clipboard

[Feature Request] SQLite 3 support

Open victorgveloso opened this issue 3 years ago • 0 comments

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"].

victorgveloso avatar Sep 14 '21 11:09 victorgveloso