Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for providing prisma transaction options #9280

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

acburdine
Copy link
Member

closes #9265

  • add options support to context.transaction
  • add prismaTypes field to TypeInfo for passing through the Prisma namespace of the generated client

I added the prismaTypes passthrough so that I could access the TransactionIsolationLevel enum, but i'm not sure if that's the best approach to do it. Happy to remove that bit if it doesn't make sense.

Copy link

codesandbox-ci bot commented Aug 12, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e3c252c:

Sandbox Source
@keystone-6/sandbox Configuration

closes keystonejs#9265
- add options support to context.transaction
- add prismaTypes field to TypeInfo for passing through the Prisma namespace of the generated client
@dcousens dcousens self-requested a review August 12, 2024 02:59
@dcousens dcousens self-assigned this Aug 12, 2024
Copy link
Member

@dcousens dcousens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I want to think about the prismaTypes situ, but I doubt there is a better proposal than this

@dcousens dcousens merged commit 6bdf320 into keystonejs:main Aug 12, 2024
42 of 43 checks passed
@acburdine acburdine deleted the transaction-passthrough branch August 12, 2024 06:53
@dcousens dcousens mentioned this pull request Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transaction timeout
3 participants