OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add prisma/cursor-plugin --skill prisma-client-api-transactions
Transactions. Reference when using this Prisma feature.
npx skills add prisma/cursor-plugin --skill prisma-client-api-transactions
Execute multiple operations atomically.
Array of operations executed in order:
If any operation fails, all are rolled back:
For complex logic and dependent operations:
| Level | Description |
|---|---|
ReadUncommitted | Lowest isolation, can read uncommitted changes |
ReadCommitted | Only read committed changes |
RepeatableRead | Consistent reads within transaction |
Serializable | Highest isolation, serialized execution |
Automatic transactions for nested operations:
The tx parameter is a Prisma Client scoped to the transaction:
Use with interactive transactions:
| Feature | Sequential | Interactive |
|---|---|---|
| Syntax | Array | Async function |
| Dependent ops | No | Yes |
| Conditional logic | No | Yes |
| Performance | Better | More flexible |
| Use case | Simple batch | Complex logic |