Alex Ruheni
4.2.0
prisma rainbow
๐ Prisma Client tracing support (Preview)
Weโre excited to announce Preview support for tracing in Prisma Client! ๐
Tracing allows you to track requests as they flow through your application. This is especially useful for debugging distributed systems where each request can span multiple services.
Read more about tracing in our announcement post and learn more in our documentation on how to start working with tracing. Try it out and let us know what you think.
๐๏ธ Isolation levels for interactive transactions
We have improved the interactiveTransactions
Preview feature with the support for defining the isolation level of an interactive transaction. To set the transaction isolation level, use the isolationLevel
option in the second parameter of the API. For example:
await prisma.$transaction(
async (prisma) => {
// Your transaction...
},
{
isolationLevel: Prisma.TransactionIsolationLevel.Serializable,
maxWait: 5000,
timeout: 10000,
}
)
Learn more about it in our documentation. Try it out, and let us know what you think in this GitHub issue.
โ๏ธ Renaming of Prisma Client Metrics
In this release, weโve renamed the metrics โ counters, gauges, and histograms โ returned from prisma.$metrics()
to make it a little easier to understand at a glance. Give Prisma Client metrics
a shot, and let us know what you think in this GitHub issue. To learn more, check out our documentation.
๐
Syntax highlighting for raw queries in Prisma Client
This release adds syntax highlighting support for raw SQL queries when using `$queryRaw``` and `$executeRaw```. This is made possible using Prismaโs VS Code extension.
Note: Syntax highlighting currently doesnโt work with when using parentheses, ()
, $queryRaw()
, $executeRaw()
, $queryRawUnsafe()
, and $executeRawUnsafe()
. If you are interested in having this supported, let us know in this GitHub issue.
๐ Learn more in the release notes
For more info and links to documentation, you can read the release notes.
๐ Help us spread the word about Prisma ๐
To help spread the word about Prisma, weโd very much appreciate it if you would star the repo ๐ And if youโre excited about the features in this weekโs release, then help us and share your excitement on Twitter.
๐ฐ Join us on Thursday for the โWhatโs new in Prismaโ livestream
This week, @Tasin Ishmam and I will discuss the latest release and other news from the Prisma ecosystem in a this Thursday at 5 pm Berlin | 8 am San Francisco.