type alias ITenantIsolationStrategy

Pluggable database-isolation strategy.

The plugin hands the resolved strategy to the data store via ITenantDataStore.useIsolation so the store can derive its partition scope. Narrow on kind to reach an arm's method; a standalone kind alias is deliberately not exported, since ITenantIsolationStrategy['kind'] already names it without a second symbol to keep in sync.

Definition

{ readonly kind: "column"; getTenantColumn(): string; }
| { readonly kind: "schema"; resolveSchema(tenantId: string): string; }
| { readonly kind: "database"; resolveDatabase(tenantId: string): string; }

Usage

import { type ITenantIsolationStrategy } from "multi-tenancy-plugin/src/index.ts";