Skip to content

shimizukawa/django-pg-rls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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