Parent
#1122 — build spec 2 of the Prisma 8 architecture spec. Lands on the prisma-8 integration branch, not main.
What to build
context.prisma is replaced by the Unsafe surface under a name stating the bypass: Prisma's sql and raw builders untouched, query(plan) returning Prisma's streaming result and execute(plan) returning statistics, both entering the unsafe origin (the streaming result through the scope-preserving wrapper), an orm lane that is a transparent proxy entering the unsafe origin on every call and re-proxying returned collections, no bare client, no prepare, no runtime, and a transaction-bound shape on the transaction context that closes over the client's raw lane and executes through tx.
Acceptance criteria
Blocked by
Generated by Claude Code
Parent
#1122 — build spec 2 of the Prisma 8 architecture spec. Lands on the
prisma-8integration branch, notmain.What to build
context.prismais replaced by the Unsafe surface under a name stating the bypass: Prisma'ssqlandrawbuilders untouched,query(plan)returning Prisma's streaming result andexecute(plan)returning statistics, both entering the unsafe origin (the streaming result through the scope-preserving wrapper), anormlane that is a transparent proxy entering the unsafe origin on every call and re-proxying returned collections, no bare client, noprepare, noruntime, and a transaction-bound shape on the transaction context that closes over the client's raw lane and executes throughtx.Acceptance criteria
awaitis coveredprepareandruntimeare not reachable from the surface's type or runtime valueBlocked by
Generated by Claude Code