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

chore: update version to include MongoDB transaction functions #101

Merged

Conversation

patriciareinoso
Copy link
Contributor

@patriciareinoso patriciareinoso commented Jan 16, 2025

Description

We would like to use transactions to ensure Atomicity in operations that perform 2 or more actions over the DB. With transactions, the operations are rolled back in case of failure. https://www.mongodb.com/docs/manual/core/transactions/

This PR adds a function to be able to use PUT operations in transactions
Operations in transactions use a shared mongo.SessionContext instead of separate context.TODO()

Publish a new version including #96

@ghislainbourgeois ghislainbourgeois merged commit 995e97d into omec-project:main Jan 16, 2025
10 checks passed
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.

2 participants