shimizukawa / django-pg-rls

django + postgres + rls

Home Page:https://scrapbox.io/shimizukawa/Django_PG_RLS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

django + postgres + rls

https://scrapbox.io/shimizukawa/Django_PG_RLS


Languages

Language:Python 99.2%Language:Dockerfile 0.8%