/django-pg-rls

django + postgres + rls

Primary LanguagePython

Django Postgres Row-Level-Security

Building multi-tenant application with using database "shared" pattern.

Concepts

  • Avoid multiple schema/database for high-performance.
  • Protecting data from other tenant.

references:

Usage

boot

$ docker-compose up

DB migration

$ docker-compose exec dj python3 manage.py migrate

access

containers

DB console

$ docker-compose exec db psql -U db