Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-9751

[Node.js] - Revise Transactions page committing section

    XMLWordPrintable

Details

    Description

      Committing is automatic: if there is no explicit call to ctx.commit() at the end of the transaction logic callback, and no exception is thrown, it will be committed. Committing is automatic at the end of the code block with the transaction context. If no exception is thrown, it will be committed. If you want to rollback the transaction, simply throw an exception. Transactions may rollback from the transaction logic itself, various failure conditions, or from your application logic by throwing an exception.

      The above block statement seems to be repeating , for instance committing is automatic and then in the next line its repeated again but with little more context. Probably it can be made concise?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            maria.shodunke Maria Shodunke (Inactive)
            maria.shodunke Maria Shodunke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty