multi-tenant

command
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 8 Imported by: 0

README

Multi-Tenant Example

This example shows how access policies affect queries in a company-aware app.

It demonstrates:

  • automatic company filtering
  • IgnoreCompany
  • IgnoreRLS
  • System
  • Raw SQL as an explicit escape hatch with WithoutPolicy()

Raw SQL still requires an explicit policy decision and uses the active dialect to convert ? placeholders.

Run it with:

export DORM_EXAMPLE_DSN='host=localhost port=5432 dbname=dorm user=postgres password=postgres sslmode=disable'
go run ./examples/multi-tenant

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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