method DatabasePerTenant.prototype.resolveDatabase
DatabasePerTenant.prototype.resolveDatabase(tenantId: string): string

Derive the database name for a tenant id.

Parameters

tenantId: string

Return Type

string

Usage

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