{"_id":"@unthrown/prisma","_rev":"12-2f7482275353c1057abd147b4d2feca2","name":"@unthrown/prisma","dist-tags":{"beta":"0.1.1-beta.2","latest":"0.5.0"},"versions":{"0.0.0":{"name":"@unthrown/prisma","version":"0.0.0","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":{"name":"Benoit TRAVERS","email":"benoit.travers.fr@gmail.com"},"license":"MIT","_id":"@unthrown/prisma@0.0.0","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"d04e537a73e692c7321e1ef1aef60694be7de799","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.0.0.tgz","fileCount":10,"integrity":"sha512-f3r/C1Is4vVtNnb7B4dH5WsSVcDkL5gPADWwTB99WHjP0AoLHoqZyrsVhAZs5pXJ3JLebDW943kWq8WW8DRx5w==","signatures":[{"sig":"MEQCIBKSNyiYUXG3onizT1X+/f3FIgs6cRFJHEiL1YVKQSGfAiB+WEXfbsT0QbKUo7anrw5HCUhKpZOLtodeBCDqy9F9uw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":111020},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"gitHead":"099b2dc558ef00cdc3d91a7999dc72faec03f316","scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit","build:docs":"typedoc"},"_npmUser":{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"},"repository":{"url":"git+https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"_npmVersion":"11.16.0","description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"unthrown":"workspace:^"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"catalog:","tsdown":"catalog:","vitest":"catalog:","typedoc":"catalog:","typescript":"catalog:","@types/node":"catalog:","@prisma/client":"catalog:","better-sqlite3":"catalog:","@unthrown/vitest":"workspace:*","@unthrown/typedoc":"workspace:*","@unthrown/tsconfig":"workspace:*","@vitest/coverage-v8":"catalog:","typedoc-plugin-markdown":"catalog:","@prisma/adapter-better-sqlite3":"catalog:"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.0.0_1783719067632_0.46508298831330186","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@unthrown/prisma","version":"0.1.0","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.1.0","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"25fc66aeb5067e733402ceb137ac24c0997d4d44","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.1.0.tgz","fileCount":10,"integrity":"sha512-45bhrZYkn18Vwa5UmMpzdcQH4iHERu3vWR6IAfUfo91jBfhSbkNNEIRM7ZNBPCK6M6oBgI9nDf/rkBUqwOzeVw==","signatures":[{"sig":"MEUCIQD7vnlBzFcoWnp1JceSsBeRQQk2Coh2vrI4guW26/JljQIgTJigVza1nzzjFstFg4svws46WU2oEthxLuTz9xhwd5E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":110971},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit","build:docs":"typedoc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"unthrown":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.8.0","tsdown":"0.22.3","vitest":"4.1.9","typedoc":"0.28.19","typescript":"6.0.3","@types/node":"24.13.2","@prisma/client":"7.8.0","better-sqlite3":"12.11.1","@unthrown/vitest":"4.1.0","@unthrown/typedoc":"0.1.0","@unthrown/tsconfig":"0.1.0","@vitest/coverage-v8":"4.1.9","typedoc-plugin-markdown":"4.12.0","@prisma/adapter-better-sqlite3":"7.8.0"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.1.0_1783807015369_0.02929065529278274","host":"s3://npm-registry-packages-npm-production"}},"0.1.1-beta.0":{"name":"@unthrown/prisma","version":"0.1.1-beta.0","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.1.1-beta.0","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"c1d9c02fbd38d6f677c6acd324db47adf4f68371","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.1.1-beta.0.tgz","fileCount":10,"integrity":"sha512-2lqINIgnmDMl2VhBagVJYyIQDTvFioMSDF0Q0QPFC+ts9MLfyo8yEBMZ68Ndttm2zrvHJa2YcNi3Z/k6g1e8cg==","signatures":[{"sig":"MEUCIQDYdtVaGERBdtkwZ53da2Eh6fHE9LAwXWSwp4iEBN3FtAIgSnEJHAFscFkQNvghVRTJLWr6GHUmadQHsYFZM+V3VAM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.1.1-beta.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":106960},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit","build:docs":"typedoc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"unthrown":"^5.0.0-beta.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.8.0","tsdown":"0.22.7","vitest":"4.1.10","typedoc":"0.28.20","typescript":"6.0.3","@types/node":"26.1.1","@prisma/client":"7.8.0","better-sqlite3":"12.11.1","@unthrown/vitest":"5.0.0-beta.0","@btravstack/typedoc":"0.1.0","@vitest/coverage-v8":"4.1.10","@btravstack/tsconfig":"0.2.0","typedoc-plugin-markdown":"4.12.0","@prisma/adapter-better-sqlite3":"7.8.0"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.1.1-beta.0_1784992435148_0.7733581348836838","host":"s3://npm-registry-packages-npm-production"}},"0.1.1-beta.1":{"name":"@unthrown/prisma","version":"0.1.1-beta.1","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.1.1-beta.1","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"1605533f9b657a6d689c6eade05dd2c470845fe1","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.1.1-beta.1.tgz","fileCount":10,"integrity":"sha512-hzrd4pwrX8VcBJpKU8a4ocQdqVwmSJOzk3YKNQJse31n/ys5KmGGm7wcyXQAtVLB2gbDHd7eiGYsVikDf+kjkg==","signatures":[{"sig":"MEUCIQC4nj42q6PcCprCGT8xme7A9zGC9KhFFHwDVklLaR7OdQIgeOe0x3pTJy1s8peBRcqttaKFpfyXfIsygUfhAe5/Z5o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.1.1-beta.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":108680},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit","build:docs":"typedoc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"unthrown":"^5.0.0-beta.1"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.8.0","tsdown":"0.22.7","vitest":"4.1.10","typedoc":"0.28.20","typescript":"6.0.3","@types/node":"26.1.1","@prisma/client":"7.8.0","better-sqlite3":"12.11.1","@unthrown/vitest":"5.0.0-beta.1","@btravstack/typedoc":"0.1.0","@vitest/coverage-v8":"4.1.10","@btravstack/tsconfig":"0.2.0","typedoc-plugin-markdown":"4.12.0","@prisma/adapter-better-sqlite3":"7.8.0"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.1.1-beta.1_1784996722069_0.549073844871057","host":"s3://npm-registry-packages-npm-production"}},"0.1.1-beta.2":{"name":"@unthrown/prisma","version":"0.1.1-beta.2","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.1.1-beta.2","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"3e4734137b639c918071d441102bedd080c7ca00","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.1.1-beta.2.tgz","fileCount":7,"integrity":"sha512-vDE/emp+DZ/3+OQkFUIc7U98oFiCxUbtP0sMiByJELnBy+UtKCUSrEEN+Z5xpfEUEt9t7SDXYtegYK6D/DspUA==","signatures":[{"sig":"MEUCIGOsHdcr1WRawLGLiskbBpFTFP8wTAH9yaWDPjyokU5DAiEAoryHLZtwOYIxoAlkKESpbKoK51+rVNJfGrcm4zF8f+Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.1.1-beta.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":64702},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit","build:docs":"typedoc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"unthrown":"^5.0.0-beta.10"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.8.0","tsdown":"0.22.12","vitest":"4.1.10","typedoc":"0.28.20","typescript":"6.0.3","@types/node":"26.1.1","@prisma/client":"7.8.0","better-sqlite3":"12.11.1","@unthrown/vitest":"5.0.0-beta.10","@btravstack/typedoc":"0.1.0","@vitest/coverage-v8":"4.1.10","@btravstack/tsconfig":"0.2.0","typedoc-plugin-markdown":"4.12.0","@prisma/adapter-better-sqlite3":"7.8.0"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.1.1-beta.2_1785274835633_0.4195897830013642","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@unthrown/prisma","version":"0.1.1","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.1.1","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"9db18b07f9da7b855ad1527c0233624c2d9773f6","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.1.1.tgz","fileCount":7,"integrity":"sha512-Kmkt05HKpWNv+XVI1iGeSs5onLzV6LyHVrxDHqUGxRXFswn222dHsAxK8U9xl0QETttYy4Y0VVPZ6+JHlPkVTQ==","signatures":[{"sig":"MEUCIA65dDgt/vpOQ8qWHm/wBNwEgkCUv8TQAPD73mWg5ID6AiEA4DeC8RrHORi7FQws0dV6FvhN2iekGfcyGYQBEr/hzIc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":64679},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit","build:docs":"typedoc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"unthrown":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.8.0","tsdown":"0.22.12","vitest":"4.1.10","typedoc":"0.28.20","typescript":"6.0.3","@types/node":"26.1.1","@prisma/client":"7.8.0","better-sqlite3":"12.11.1","@unthrown/vitest":"5.0.0","@btravstack/typedoc":"0.1.0","@vitest/coverage-v8":"4.1.10","@btravstack/tsconfig":"0.2.0","typedoc-plugin-markdown":"4.12.0","@prisma/adapter-better-sqlite3":"7.8.0"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.1.1_1785340430212_0.8461206228895877","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@unthrown/prisma","version":"0.2.0","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.2.0","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"49f2aaaa26f7defc7df2603f6ecc155b556e6d1a","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.2.0.tgz","fileCount":7,"integrity":"sha512-qadjU3fhS1X61I68EssAKQt1Xqp+h8E3nSfy5lVhs+lXtauzewaxC+oJfbJgU/yb/KMlP+Ht1uwB+bywvnrSJA==","signatures":[{"sig":"MEUCIC9avYQt8EAscPK782TURfV21QC7R67GlCCSXUtXE8GVAiEAi204KcUI52Auivte63+3HliEmh2rxgFwFg3/2iHZA9c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":79654},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit","build:docs":"typedoc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"unthrown":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.8.0","tsdown":"0.22.12","vitest":"4.1.10","typedoc":"0.28.20","typescript":"6.0.3","@types/node":"26.1.1","@prisma/client":"7.8.0","better-sqlite3":"12.11.1","@unthrown/vitest":"5.1.0","@btravstack/typedoc":"0.1.0","@vitest/coverage-v8":"4.1.10","@btravstack/tsconfig":"0.2.0","typedoc-plugin-markdown":"4.12.0","@prisma/adapter-better-sqlite3":"7.8.0"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.2.0_1785703862157_0.4474847224929992","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@unthrown/prisma","version":"0.3.0","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.3.0","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"7cb8cf4c80481be0544a8a4043a7cfa4124e47ad","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.3.0.tgz","fileCount":7,"integrity":"sha512-eMV+OJ+ubCeb8Rlh7ySdLw5/Cl/tVHRS5FsvGMlCyN/jhjd5VtfRd9UEHDc6lRFrHgazUhdCkrDgmrZqudQT7w==","signatures":[{"sig":"MEUCIGPx2DmQxa++swR86NM0vvuvFhxGL8GrA0SKqPxlIe6zAiEAkoHygA3enGUojFtTV0fx4nKF0QPaiVB/FyApKH6nqww=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":83499},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"unthrown":"^5.3.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.9.1","tsdown":"0.22.14","vitest":"4.1.10","typescript":"7.0.2","@types/node":"26.1.2","@prisma/client":"7.9.1","better-sqlite3":"13.0.2","@unthrown/vitest":"5.3.0","@vitest/coverage-v8":"4.1.10","@btravstack/tsconfig":"0.2.0","@prisma/adapter-better-sqlite3":"7.9.1"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.3.0_1786488012284_0.08306058272670658","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@unthrown/prisma","version":"0.3.1","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.3.1","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"7a75a2fa5b8b7b35a99889b9f69e6b234b3d586a","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.3.1.tgz","fileCount":7,"integrity":"sha512-k4RQ17euZBnUBVazjkOAQmLaWg+xQtl56Q22eBj9w/CgesTYUo2xd/6hB7nf+o4ugdJCf4SUVMvZok6IzkuI9w==","signatures":[{"sig":"MEUCIQCowcvJ77Rly1g4YJeiXVeyr5yi16zgI/L+AJK+ybTRjAIgBiqTeWnRNiVgumomni5rqWNyKFQ7sTFBLTlsm/I85jE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":83499},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"unthrown":"^5.4.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.9.1","tsdown":"0.22.14","vitest":"4.1.10","typescript":"7.0.2","@types/node":"26.1.2","@prisma/client":"7.9.1","better-sqlite3":"13.0.2","@unthrown/vitest":"5.4.0","@vitest/coverage-v8":"4.1.10","@btravstack/tsconfig":"0.2.0","@prisma/adapter-better-sqlite3":"7.9.1"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.3.1_1786545929517_0.8367632180635893","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@unthrown/prisma","version":"0.3.2","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.3.2","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"577757acf498b1ebcfabd219b1f6615a18a669f7","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.3.2.tgz","fileCount":7,"integrity":"sha512-fD29HUfZiBRPVgLTuDdcHD0qPtzQDzy/NfS51kkUD8MVbQ378LF1gzAvs6W7fkZRGr/B5Y8B/zc8qhDsa6EM7A==","signatures":[{"sig":"MEYCIQCVeqoiQhm+3fZfE1M8SvJ/SoNPG9s4ncSLqPsAILF2CQIhAJAMTPvs5qL+sQVdW+2/L1WxHEizATN5VMe4SK6KsVio","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84046},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"unthrown":"^5.5.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.9.1","tsdown":"0.22.14","vitest":"4.1.10","typescript":"7.0.2","@types/node":"26.1.2","@prisma/client":"7.9.1","better-sqlite3":"13.0.2","@unthrown/vitest":"5.5.0","@vitest/coverage-v8":"4.1.10","@btravstack/tsconfig":"0.2.0","@prisma/adapter-better-sqlite3":"7.9.1"},"peerDependencies":{"@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.3.2_1786556169170_0.24453380231137967","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@unthrown/prisma","version":"0.4.0","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","_id":"@unthrown/prisma@0.4.0","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"homepage":"https://github.com/btravstack/unthrown#readme","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"a0967f7db5d9a72c4abbca83984ce1fa7d158923","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.4.0.tgz","fileCount":7,"integrity":"sha512-0qbEaD2zA1aU9fzI62V9wnofprBEZVDpd7aIgOpPi3Ot2wtSPks5NPE99bWZ/mOeob2o/OJycyVYw8RhtVq7mQ==","signatures":[{"sig":"MEYCIQD7AKg7DV7KCyYn7tNrJ+yEcQUTm75cmHe477hSXU7T7AIhAOy/hBc8B3lc2/KGD60bRAlTRlkZxjehmRtsxCv/CtsD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84048},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.cts","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"prisma":"7.9.1","tsdown":"0.22.14","vitest":"4.1.10","unthrown":"^5.7.0","typescript":"7.0.2","@types/node":"26.2.0","@prisma/client":"7.9.1","better-sqlite3":"13.0.3","@unthrown/vitest":"5.7.0","@vitest/coverage-v8":"4.1.10","@btravstack/tsconfig":"0.2.0","@prisma/adapter-better-sqlite3":"7.9.1"},"peerDependencies":{"unthrown":"^5.7.0","@prisma/client":"^7"},"_npmOperationalInternal":{"tmp":"tmp/prisma_0.4.0_1787580721288_0.6834524144747722","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"_id":"@unthrown/prisma@0.5.0","bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"dist":{"shasum":"7a7a46ea05b43677db33114ef4425d651a743324","tarball":"https://registry.npmjs.org/@unthrown/prisma/-/prisma-0.5.0.tgz","fileCount":7,"integrity":"sha512-ODsYToqhbr2MwidSvJJa4ozGT0gdvaTINOhZwELgfdxdqjfO/Ud3Btm0TDTV5l0U1FSjxqQUXmdkaHlCJQjTew==","signatures":[{"sig":"MEYCIQDcx0CTzBa9PKftrGWaLwS9rg+rHAjTPmVd2qZ3mA6nlQIhAOX7vctgj7TkXDLsZmul1Ptz1pvycXMevggRC+1UcG56","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDBKQjWyXfbJ9CK+7DHR3pEit2DXXLEUmx549BVx65XgAIgQTFFo17EbS3HR/5iULYbFLWa26V2Ut/pd54akeBguOM="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@unthrown%2fprisma@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":89950},"main":"./dist/index.cjs","name":"@unthrown/prisma","type":"module","types":"./dist/index.d.cts","author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","module":"./dist/index.mjs","engines":{"node":">=20.19"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"license":"MIT","scripts":{"dev":"tsdown src/index.ts --format cjs,esm --dts --watch","test":"prisma generate && vitest run","build":"tsdown src/index.ts --format cjs,esm --dts --clean","generate":"prisma generate","typecheck":"prisma generate && tsc --noEmit"},"version":"0.5.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e200de14-4392-4f69-af3e-61ad46561029"}},"homepage":"https://github.com/btravstack/unthrown#readme","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","directories":{},"maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"prisma":"7.10.0","tsdown":"0.23.0","vitest":"4.1.11","unthrown":"^5.10.0","typescript":"7.0.2","@types/node":"26.5.1","@prisma/client":"7.10.0","better-sqlite3":"13.0.3","@unthrown/vitest":"5.10.0","@vitest/coverage-v8":"4.1.11","@btravstack/tsconfig":"0.4.0","@prisma/adapter-better-sqlite3":"7.10.0"},"peerDependencies":{"unthrown":"^5.10.0","@prisma/client":"^7"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prisma_0.5.0_1790601206691_0.7332363036928831"}}},"time":{"created":"2026-07-10T21:31:07.480Z","modified":"2026-09-28T13:13:27.133Z","0.0.0":"2026-07-10T21:31:07.849Z","0.1.0":"2026-07-11T21:56:55.521Z","0.1.1-beta.0":"2026-07-25T15:13:55.287Z","0.1.1-beta.1":"2026-07-25T16:25:22.220Z","0.1.1-beta.2":"2026-07-28T21:40:35.785Z","0.1.1":"2026-07-29T15:53:50.331Z","0.2.0":"2026-08-02T20:51:02.301Z","0.3.0":"2026-08-11T22:40:12.426Z","0.3.1":"2026-08-12T14:45:29.676Z","0.3.2":"2026-08-12T17:36:09.346Z","0.4.0":"2026-08-24T14:12:01.429Z","0.5.0":"2026-09-28T13:13:26.782Z"},"bugs":{"url":"https://github.com/btravstack/unthrown/issues"},"author":"Benoit TRAVERS <benoit.travers.fr@gmail.com>","license":"MIT","homepage":"https://github.com/btravstack/unthrown#readme","keywords":["database","errors-as-values","orm","prisma","prisma-extension","result","typescript","unthrown"],"repository":{"url":"https://github.com/btravstack/unthrown.git","type":"git","directory":"packages/prisma"},"description":"Prisma Client extension for unthrown: try-prefixed query methods returning AsyncResult, with per-operation tagged errors","maintainers":[{"name":"benoittravers","email":"benoit.travers.fr@gmail.com"}],"readme":"# @unthrown/prisma\n\n> A [Prisma](https://www.prisma.io) Client extension for\n> [unthrown](https://github.com/btravstack/unthrown)'s `Result`: `try`-prefixed\n> query methods returning `AsyncResult`, with per-operation tagged errors.\n\n📖 **[Documentation](https://btravstack.github.io/unthrown/how-to/use-with-prisma)** ·\n[API Reference](https://btravstack.github.io/unthrown/api/prisma/)\n\n```sh\npnpm add @unthrown/prisma unthrown\n```\n\n`$extends(unthrownPrisma)` adds `try*` variants of the model delegate operations\n**alongside** the raw promise ones. Each returns an `AsyncResult` whose error\nchannel is exactly the **domain** outcomes that operation can produce, mapped to\ntagged errors — a read cannot fail with `UniqueConstraintViolation` _in the\ntype_. Qualification happens once, inside the extension: no raw Promise ever\nreaches your code.\n\n```ts\nimport { P } from \"unthrown\";\nimport { unthrownPrisma } from \"@unthrown/prisma\";\nimport { PrismaClient } from \"./generated/prisma/client.ts\";\n\nconst db = new PrismaClient({ adapter }).$extends(unthrownPrisma);\n\nconst users = db.user.tryFindMany({ select: { id: true } });\n//    ^? AsyncResult<{ id: number }[], never>\n//       A read has no modeled failure. `select` / `include` payload\n//       inference survives the wrap.\n\nawait db.user.tryCreate({ data }).match({\n  ok: (user) => created(user),\n  // every case `tryCreate` can raise gets an arm — cases sharing a handler\n  // are grouped, so nothing is absorbed unnamed:\n  errCases: (matcher) =>\n    matcher\n      .with(P.tag(\"UniqueConstraintViolation\"), (e) => conflict(e.fields))\n      .with(P.tag(\"ForeignKeyViolation\"), P.tag(\"RecordNotFound\"), () =>\n        badRequest(\"unknown reference\"),\n      ),\n  // a dropped connection, a deadlock, a bug — one arm, at the edge:\n  defect: serverError,\n});\n```\n\n- **`E` is domain outcomes only** — things a caller did, or a legitimate state\n  conflict, that your code actually branches on:\n\n  | Operation                                                                                     | Error channel                                                        |\n  | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |\n  | `tryFindMany` / `tryFindUnique` / `tryFindFirst` / `tryCount` / `tryAggregate` / `tryGroupBy` | `never`                                                              |\n  | `tryFindUniqueOrThrow` / `tryFindFirstOrThrow`                                                | `RecordNotFound`                                                     |\n  | `tryCreate` / `tryUpsert` / `tryUpdate`                                                       | `UniqueConstraintViolation \\| ForeignKeyViolation \\| RecordNotFound` |\n  | `tryDelete`                                                                                   | `ForeignKeyViolation \\| RecordNotFound \\| UniqueConstraintViolation` |\n  | `tryCreateMany` / `tryCreateManyAndReturn` / `tryUpdateMany` / `tryUpdateManyAndReturn`       | `UniqueConstraintViolation \\| ForeignKeyViolation`                   |\n  | `tryDeleteMany`                                                                               | `ForeignKeyViolation \\| UniqueConstraintViolation`                   |\n  | `tryPaginate(...).withCursor(...)`                                                            | `InvalidCursor`                                                      |\n\n  `UniqueConstraintViolation` is P2002 (409, and carries the offending\n  `fields`), `ForeignKeyViolation` is P2003 (400), `RecordNotFound` is\n  P2025/P2018 (404). Only the **batch** mutations are free of `RecordNotFound`:\n  they take no nested writes, and zero matches is `Ok({ count: 0 })`.\n  `tryCreate` and `tryUpsert` carry it because a nested `connect` can point at a\n  row that does not exist.\n  Never send a modeled error to a client unmapped: its `cause` is the Prisma\n  error, whose message quotes the failing call and its values. `cause` is\n  non-enumerable, so `JSON.stringify` skips it, but it is still readable.\n\n- **Everything infrastructural is a defect** — a dropped connection, a pool\n  timeout, a deadlock, an unmapped P-code, a malformed query, an engine panic.\n  Nobody writes domain logic for those: they are logged and turned into a 500 by\n  the one `defect` arm you already have at the edge. Putting them in `E` would\n  only force every call site to carry an arm duplicating its own `defect` arm.\n  (A defect is not a crash — it flows through the pipeline untouched and is\n  folded at the edge like any other unmodeled failure.)\n\n  Those four codes are the **whole** modeled set: every other P-code — `P2007`,\n  `P2023`, `P2000`, `P2011`, `P2015`, … — is a defect. That matters where a\n  defect is _retried_ rather than surfaced (a Temporal activity rethrows it, and\n  a malformed id can never succeed on a retry). Replacing a hand-rolled\n  qualifier? Diff it against these four and re-qualify the rest with\n  `recoverDefect` — see\n  [Migrating a hand-rolled qualifier](https://btravstack.github.io/unthrown/how-to/use-with-prisma#migrating-a-hand-rolled-qualifier).\n\n- **`$tryTransaction`** — an interactive transaction whose callback speaks\n  `AsyncResult`: an `Err` triggers a ROLLBACK and comes out as the same typed\n  `Err`; a defect also rolls back and stays a defect. The `try*` methods are\n  available on `tx`, and nesting is a compile error.\n\n```ts\nconst moved = db.$tryTransaction((tx) =>\n  tx.account\n    .tryUpdate({\n      where: { id: from },\n      data: { balance: { decrement: amount } },\n    })\n    .flatMap(() =>\n      tx.account.tryUpdate({\n        where: { id: to },\n        data: { balance: { increment: amount } },\n      }),\n    ),\n);\n// Err anywhere → both updates rolled back, and the Err is in `moved`.\n```\n\n- **`$tryTransaction([...])`** — the same method's **batch** form: the operations\n  run in one round trip, all or nothing. It takes the **raw** delegate methods,\n  because Prisma's batch form needs unexecuted `PrismaPromise`s — and for the\n  same reason `E` is the whole `PrismaQueryError` union rather than the\n  per-operation narrowing `try*` gives.\n\n```ts\nconst rows = db.$tryTransaction(inputs.map((data) => db.user.create({ data })));\n//    ^? AsyncResult<User[], PrismaQueryError>\n// Any constraint violation → nothing is written, and the Err is modeled.\n```\n\n- **`TransactionClient<C>`** — the type of an interactive callback's `tx`, for\n  naming the parameter of a helper factored out of one:\n  `type Tx = TransactionClient<typeof db>`.\n\n- **`tryPaginate`** — cursor pagination in the style of\n  [`prisma-extension-pagination`](https://github.com/deptyped/prisma-extension-pagination)\n  (same option names, same `[results, meta]` shape), with one fix folded in: a\n  cursor pointing at a record that no longer matches the query filter does not\n  skip the first element of the page\n  ([deptyped/prisma-extension-pagination#35](https://github.com/deptyped/prisma-extension-pagination/issues/35)).\n\n```ts\nconst page = await db.user\n  .tryPaginate({ where: { active: true }, orderBy: { id: \"asc\" } })\n  .withCursor({ limit: 20, after: req.query.cursor });\n// Ok([users, { hasPreviousPage, hasNextPage, startCursor, endCursor }])\n// | Err(InvalidCursor) — the cursor is the only part of the query that came from\n//   outside, so it is the only modeled failure: answer it with a 400.\n// `after` and `before` are mutually exclusive, and `before` + `limit: null` is\n// a compile error.\n\n// Custom serialization (composite keys, non-id cursors):\nconst liked = await db.like\n  .tryPaginate({ orderBy: { postId: \"asc\" } })\n  .withCursor({\n    limit: 20,\n    getCursor: ({ postId, userId }) => `${postId}:${userId}`,\n    parseCursor: (cursor) => {\n      const [postId, userId] = cursor.split(\":\");\n      return {\n        userId_postId: { postId: Number(postId), userId: Number(userId) },\n      };\n    },\n  });\n```\n\nThe raw promise methods stay available on purpose: raw SQL goes through them, and\na batch `$tryTransaction([...])` is composed from them.\n\n`@prisma/client` (v7+) is a peer dependency.\n\n## License\n\n[MIT](https://github.com/btravstack/unthrown/blob/main/LICENSE) © Benoit TRAVERS\n","readmeFilename":""}