UNPKG

@myfunc/prisma-transactional

Version:

Decorator that wraps all prisma queries along the whole call stack to a single transaction.

22 lines (21 loc) 518 B
{ "name": "example", "scripts": { "install": "prisma migrate dev", "dev": "ts-node -r dotenv/config --transpile-only index.ts", "lint": "eslint index.ts" }, "dependencies": { "@prisma/client": "^5.13.0", "dotenv": "^16.4.5" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.8.0", "@typescript-eslint/parser": "^7.8.0", "eslint": "^8.57.0", "eslint-plugin-local": "^4.2.2", "prisma": "latest", "ts-node": "^10.9.2", "typescript": "^5.0.0" } }