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
begin
orcommit
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 thecommit
function 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