[DOCS-11540] Docs for SERVER-33218: Implement shell API for transactions Created: 04/Apr/18  Updated: 29/Oct/23  Resolved: 09/May/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.4

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-33218 Implement shell API for transactions Closed
Related
related to DOCS-11637 Update operations that support readC... Closed
Participants:
Days since reply: 5 years, 40 weeks ago
Epic Link: DOCS: 4.0 Server

 Description   

Documentation Request Summary:

We've introduced three new shell helpers: startTransaction(), commitTransaction(), and abortTransaction(). All three require that a Session has been started and must be called on it.

startTransaction can take optional transaction options (readConcern and writeConcern). These can only be set at the beginning of a transaction and will be used for all subsequent statements in a transaction.

calling commitTransaction allows you to see your changes outside of the transaction.

calling abortTransaction terminates the transaction and none of the changes will be saved.

Please let me know if anything is unclear! I committed a test with the server ticket so that should make things easier to understand.



 Comments   
Comment by Githook User [ 09/May/18 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'kay', 'username': 'kay-kim'}

Message: DOCS-11540, DOCS-11605: mongo shell txn helpers and read concern
Branch: master
https://github.com/mongodb/docs/commit/1daa9e26f51eaca0571671cca0116037655bfad7

Generated at Thu Feb 08 08:03:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.