Skip to content

Commit 38cbe07

Browse files
author
Seven Du
authored
Merge pull request #21 from odroe/generator_with_code_builder
Generator with code builder
2 parents a5d870d + 22a2e3f commit 38cbe07

24 files changed

+16783
-3905
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,27 @@ Please create an issue at https://github.com/odroe/prisma-dart/issues/new
4747
clientVersion: 2.1.2
4848
```
4949

50+
### `$transaction` options
51+
52+
`prisma.$transaction` now supports the following options:
53+
```dart
54+
final prisma = PrismaClient();
55+
await prisma.$transaction((prisma) async {
56+
// ...
57+
}, TransactionOptions(
58+
maxWait: 2000,
59+
timeout: 5000,
60+
isolationLevel: TransactionIsolationLevel.ReadUncommitted,
61+
));
62+
```
63+
64+
More details 👉 [Interactive transactions](https://www.prisma.io/docs/concepts/components/prisma-client/transactions#interactive-transactions-in-preview)
65+
5066
### Bug fixes
5167

5268
1. Fixed `packageVersion` not updating with version
69+
2. Fixed binary query engine not automatically searching when `executable` is specified
70+
2. Fixed binary query engine not automatically searching when specifying `PRISMA_QUERY_ENGINE_BINARY` environment variable
5371

5472
### Engines version
5573

0 commit comments

Comments
 (0)