Function: PrismaRoleCatalog()
PrismaRoleCatalog(
prisma):RoleCatalogStore
Defined in: packages/polizy/src/polizy.prisma.storage.ts:345
A persistent RoleCatalogStore backed by the PolizyRole table. Pass
it to a RoleRegistry so empty roles are listable and assignRole can
verify a role exists. The authorization engine never reads it — capabilities
and assignments live in PolizyTuple via the PrismaAdapter.
Parameters
prisma
PrismaRoleClientLike
Returns
Example
const roles = new RoleRegistry(authz, schema, {
catalog: PrismaRoleCatalog(new PrismaClient()),
});