tenant-rls-native

command
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Example: quark tenant install-rls-policies — minimal embedding of the quarktenant library into a user-owned binary that can be run from CI / Makefile to install PostgreSQL row-level security policies for every model registered on the quark.Client.

Usage:

QUARK_DSN=postgres://app:pw@localhost:5432/myapp \
  go run ./examples/tenant-rls-native install-rls-policies --dry-run

or, to apply for real:

go run ./examples/tenant-rls-native install-rls-policies

The library only supports PostgreSQL; running this against any other dialect returns ExitError with a clear message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL