Cmdlets for Couchbase

Build 24.0.9062

UseTransactions Parameter (Connect-Couchbase Cmdlet)

Specifies whether to use N1QL transactions when executing queries.

Syntax

Connect-Couchbase -UseTransactions string

Possible Values

Never, Always, Explicit

Data Type

cstr

Default Value

"Never"

Remarks

By default the 本製品 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.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9062