Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11540

Docs for SERVER-33218: Implement shell API for transactions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 43 weeks, 1 day ago