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.
Click to show internal directories.
Click to hide internal directories.