Cmdlets for Couchbase

Build 24.0.8963

Update-Couchbase Cmdlet

Parameters   Output Objects  

Updates Couchbase data.

Syntax

Update-Couchbase [parameters]

Remarks

The Update-Couchbase cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Couchbase data.

$conn = Connect-Couchbase -User 'myusername' -Password 'mypassword' -Server 'http://couchbase40'
Update-Couchbase -Connection $conn -Table "Customer" -Columns @("TotalDue") -Values @("Jon Doe") -Id "1"
The Where parameter can also be used to specify the primary key of the table:
Update-Couchbase -Connection $conn -Table "Customer" -Columns @("TotalDue") -Values @("Jon Doe") -Where "Id = '1'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Couchbase -Connection $conn -Table Customer -Where "CustomerId = '12345'" | Update-Couchbase -Columns @("CustomerId") -Values @("12345 2")

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