EnableTransaction
| Default Value | Data Type | Required |
|---|---|---|
|
|
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
beginorcommitfunctions even if they are explicitly called. - On MongoDB versions 4.0 and later, the connector executes the
beginfunction when auto-commit is set to off, and executes thecommitfunction when explicitly called.
- On MongoDB versions earlier than 4.0, the connector does not execute the
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.
- Write-Back
- Building the Connection URL
- General Driver Configuration Options on page 1
- Driver Configuration Options on page 1