Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

feat: use Prisma transactions for write operations#438

Open
majiayu000 wants to merge 1 commit intotruefoundry:mainfrom
majiayu000:feat/prisma-transactions
Open

feat: use Prisma transactions for write operations#438
majiayu000 wants to merge 1 commit intotruefoundry:mainfrom
majiayu000:feat/prisma-transactions

Conversation

@majiayu000
Copy link
Copy Markdown

Summary

Use transactions in write operations to ensure atomicity and automatic rollback on errors.

Changes

  • aassociate_data_sources_with_collection: Wrapped in transaction
  • aunassociate_data_source_with_collection: Wrapped in transaction
  • adelete_data_source: Wrapped in transaction
  • Removed 'Use transactions!' from TODO list

Related Issue

Closes #300

Use transactions in aassociate_data_sources_with_collection,
aunassociate_data_source_with_collection, and adelete_data_source
to ensure atomicity and automatic rollback on errors.

Closes truefoundry#300

Signed-off-by: majiayu000 <1835304752@qq.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use prisma transactions for write queries to correctly automatically rollback in error situations

1 participant