Skip to content

basalt / prisma/src / TenancyRlsExtension

Type Alias: TenancyRlsExtension ​

> TenancyRlsExtension = <C>(client) => C

Defined in: prisma/src/extension.ts:486

The function form Prisma's $extends also accepts (rls on): it receives the client being extended, which it needs to open the set_config batch. Typed as identity so $extends keeps the client's own type.

Type Parameters ​

C ​

C

Parameters ​

client ​

C

Returns ​

C

Released under the MIT License.