Skip to content

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.

@codesandbox-ci
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
@acburdine acburdine force-pushed the transaction-passthrough branch from 93b29f9 to e3c252c Compare August 12, 2024 01:19
@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
@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