Function: PrismaAdapter()
PrismaAdapter<
S,O>(prisma,options?):StorageAdapter<S,O>
Defined in: packages/polizy/src/polizy.prisma.storage.ts:150
Type Parameters
S
S extends string = string
O
O extends string = string
Parameters
prisma
PrismaClientLike
options?
snapshotIsolationLevel?
string
Isolation level for StorageAdapter.withSnapshot. With Postgres use
"RepeatableRead" — MVCC means readers never block writers and writers
never block readers. SQLite ignores isolation levels (its read
transaction is already a snapshot), so leave it unset there.
Returns
StorageAdapter<S, O>