UseTransactions
Specifies whether to use N1QL transactions when executing queries.
Syntax
property UseTransactions: String;
Possible Values
Never, Always, ExplicitData Type
String
Default Value
"Never"
Remarks
By default the component does not use transactions for compatibility with older versions of Couchbase. All of the other options require a connection to Couchbase 7 or above. The N1QL service must also be enabled using CouchbaseService.
Setting this to Always means that all queries will use transactions. An explicit transaction may be created on the connection and queries will use that transaction while it is active. If there is no explicit transaction then queries will use implicit transactions instead.
Setting this to Explicit enables support for explicit transactions only. Explicit transactions may be created but if one is not currently active, then statements will not create an implicit transaction.