Hey <!everyone> :v: :prisma-cool: We just release...
# prisma-whats-new
m
Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma 2.29.0 prisma rainbow ๐Ÿš€ Interactive Transactions are now in Preview Today weโ€™re introducing Interactive Transactions โ€“ one of our most debated feature requests. Interactive Transactions are a double-edged sword. While they allow you to ignore a class of errors that could otherwise occur with concurrent database access, they impose constraints on performance and scalability. While we believe there are better alternative approaches we certainly want to ensure people who absolutely need them have the option available. You can opt-in to Interactive Transactions by setting the
interactiveTransactions
preview feature in your Prisma Schema:
Copy code
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["interactiveTransactions"]
}
Note that the interactive transactions API does not support controlling isolation levels or locking for now. You can find out more about implementing use cases with transactions in the docs, and share your feedback. ๐ŸŽ‰
namedConstraints
are now in Preview
So far the Prisma schema could only represent the underlying database names for
@@unique
and
@@index
. Names for primary keys and foreign keys could not be represented even when the database supported these. This could lead to problems with the names of constraints in different environments getting out of sync and generated migrations therefore failing. You can opt-in to
namedConstraints
by setting the
namedConstraints
preview feature in your Prisma Schema:
Copy code
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["namedConstraints"]
}
When using
prisma db pull
these names will now automatically be pulled into your Prisma schema unless they match our default naming convention (which follows the Postgres convention). Please check our upgrade guide before enabling the preview flag and running migrate operations for the first time. ๐Ÿ“š 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 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 @Daniel Norman and I will discuss the latest release and other news from the Prisma ecosystem in a

livestream on YouTubeโ–พ

on Thursday at 5pm Berlin | 8am San Francisco.
canada parrot 5
๐Ÿ‡ต๐Ÿ‡ฑ 8
๐Ÿ‡ป๐Ÿ‡ช 5
๐Ÿ˜• 5
๐ŸŒŸ 6
๐Ÿ”ฅ 6
pokemon squirtle 2
๐Ÿ‡ฐ๐Ÿ‡ท 13
๐Ÿ™Œ 2
๐Ÿ‡ซ๐Ÿ‡ฎ 1
๐Ÿ‡ณ๐Ÿ‡ด 1
cat on keyboard 1
๐Ÿฑ 1
๐Ÿ‡ณ๐Ÿ‡ฌ 6
๐Ÿ‡ฎ๐Ÿ‡ณ 11
๐Ÿ‡ฆ๐Ÿ‡บ 1
๐Ÿ‡ฟ๐Ÿ‡ผ 1
prisma cool 19
โœจ 7
๐Ÿš€ 16
prisma xmas 4
southafrica parrot 5
โค๏ธ 7
๐Ÿ‘ 2
๐Ÿ‘€ 3
๐Ÿ‡ซ๐Ÿ‡ท 3
๐Ÿˆโ€โฌ› 1
octocat 1
catjam 6
ireland parrot 1
node parrot 1
๐Ÿ‡ฟ๐Ÿ‡ฆ 4
๐Ÿ‡ช๐Ÿ‡ฌ 3
๐Ÿ‡ง๐Ÿ‡ท 1
fast parrot 43
๐ŸŽ‰ 18
prismo gif 10
prisma rainbow 18
go gopher dance 4
๐Ÿ‡ฌ๐Ÿ‡ช 2
typescript 6
๐Ÿฅฐ 3
๐Ÿณ๏ธโ€๐ŸŒˆ 3
๐Ÿˆ 1
๐Ÿ˜ป 1
๐Ÿ… 1
๐Ÿ‡ท๐Ÿ‡บ 1
australia parrot 1
pakistan parrot 2
๐Ÿ‡ฆ๐Ÿ‡ฒ 2