项目作者: shimizukawa

项目描述 :
django + postgres + rls
高级语言: Python
项目地址: git://github.com/shimizukawa/django-pg-rls.git
创建时间: 2021-04-22T15:40:38Z
项目社区:https://github.com/shimizukawa/django-pg-rls

开源协议:

下载


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

  1. $ docker-compose up

DB migration

  1. $ docker-compose exec dj python3 manage.py migrate

access

containers

DB console

  1. $ docker-compose exec db psql -U db