Skip to content

Conversation

@majiayu000
Copy link

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 <[email protected]>
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.

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

1 participant