Skip to content

basalt / prisma/src / provisionTenantSchema

Function: provisionTenantSchema() ​

> provisionTenantSchema(client, schema): Promise<void>

Defined in: prisma/src/schema.ts:152

Creates the tenant's schema if it does not exist. The schema name is validated ([a-z0-9_]) before interpolation, so quoting is safe.

Parameters ​

client ​

SchemaProvisioner

schema ​

string

Returns ​

Promise<void>

Released under the MIT License.