EnableTransaction

Default Value Data Type Required

false

String

No

Description

This property specifies whether the connector supports connections where auto-commit mode is disabled in the client application.

  • true: The connector supports connections where auto-commit mode is disabled in the client application.
    • On MongoDB versions earlier than 4.0, the connector does not execute the begin or commit functions even if they are explicitly called.
    • On MongoDB versions 4.0 and later, the connector executes the begin function when auto-commit is set to off, and executes the commit function when explicitly called.
  • false: The connector does not support connections where auto-commit mode is disabled in the client application, and returns an error instead.
Important:

Important:

On MongoDB versions earlier than 4.0, regardless of whether auto-commit mode is enabled, the connector does not wait for commit operations to complete, and always executes queries immediately.