mik3y / django-db-multitenant

A simple multi-tenancy solution for Django apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] SQLite 3 support

victorgveloso opened this issue · 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"].