Skip to main content
ScanDrix requires PostgreSQL 16+ with Row-Level Security (RLS) enabled. The Go backend uses pgx/v5 with an internal pool manager (pgxpool) optimized for multi-tenant isolation and high-concurrency connection handling.

Connection pool configuration

Tune PostgreSQL pool settings via environment variables in production:

Running database migrations

ScanDrix ships a dedicated idempotent SQL migration binary (cmd/migrate / scandrix-migrate) that runs versioned migrations from migrations/:

Standalone Docker migration runner

In automated CI/CD pipelines, run migrations as a pre-deploy Kubernetes Job:

Row-Level Security (RLS) verification

ScanDrix enforces tenant isolation at the database engine level. Every tenant-scoped query runs inside a transaction that sets:
Any attempt by a query to read or write rows belonging to another organization ID is rejected by PostgreSQL with an RLS policy violation error.