Skip to content

Commit

Permalink
docs: add transaction isolation levels
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanblade committed Jan 31, 2024
1 parent 18087f6 commit 4991b5a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/reference/transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,17 @@ In the case that this example runs successfully, then both database writes are c
)
```

## Isolation levels

By default, Prisma sets the isolation level to the value currently configured in the database. You can modify this
default with the `isolation_level` argument (see [supported isolation levels](https://www.prisma.io/docs/orm/prisma-client/queries/transactions#supported-isolation-levels)).

```py
prisma.tx(
isolation_level=prisma.TransactionIsolationLevel.READ_UNCOMMITTED,
)
```

## Timeouts

You can pass the following options to configure how timeouts are applied to your transaction:
Expand Down

0 comments on commit 4991b5a

Please sign in to comment.