@prisma-idb/driver-idb
v0.14.1
Published
Prisma 8 IDB family — driver (wraps window.indexedDB for the execution stack)
Maintainers
Readme
@prisma-idb/driver-idb
The IndexedDB driver for Prisma 8. It runs query plans against the browser's IndexedDB API and manages connections and transactions.
Install it as a dev dependency; prisma.config.ts needs @prisma-idb/driver-idb/control, a stub, because the framework requires a driver. Apps don't import it directly; @prisma-idb/client-idb does.
npm install --save-dev @prisma-idb/driver-idbPart of Prisma 8 IDB, a typed IndexedDB client for Prisma 8. Start with the Quick Start. For how the packages fit together, see ARCHITECTURE.md.
Update identity
update and scan-write preserve the existing primary key. Changing an inline key rejects with IdbExecuteError code PRIMARY_KEY_CHANGE_UNSUPPORTED and aborts the transaction. Repeating an equivalent key is allowed, including compound, date and binary keys.
Primary keys are immutable. Delete the row and create it again only after handling dependent records. Restrictive relations can block the delete, and cascading relations can delete dependent records. See ADR 020 for the reasons.
License
MIT
