Skip to content

basalt / permissions-prisma/src / PrismaAccessStoreOptions

Interface: PrismaAccessStoreOptions ​

Defined in: permissions-prisma/src/index.ts:131

Properties ​

columnLimits? ​

> optional columnLimits?: "mysql" | ColumnLimits<{ PermDelegation: "id" | "scope" | "fromUserId" | "toUserId"; PermRolePermission: "role" | "scope" | "permission"; PermTemporaryGrant: "id" | "userId" | "scope" | "grantedBy" | "reason"; PermUserPermission: "userId" | "scope" | "permission"; PermUserRole: "userId" | "role" | "scope"; }>

Defined in: permissions-prisma/src/index.ts:140

Refuse (throw ColumnLengthError) a value longer than its column instead of letting the database truncate it — on MySQL outside strict mode two long permission names cut to the same prefix collapse into one grant. 'mysql' uses the limits of the bundled schema.mysql.prisma; pass an object for a schema of your own. Default: unchecked (PostgreSQL and SQLite store any length).

Released under the MIT License.