Cmdlets for Apache CouchDB

Build 25.0.9434

Update-ApacheCouchDB Cmdlet

Parameters   Output Objects  

Updates Apache CouchDB data.

Syntax

Update-ApacheCouchDB [parameters]

Remarks

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

$conn = Connect-ApacheCouchDB -User 'abc123' -Password 'abcdef'
Update-ApacheCouchDB -Connection $conn -Table "Movies" -Columns @("MovieRating") -Values @("R") -Id "70f6284d2a395396dbb3a60b4ce3d2d6"
The Where parameter can also be used to specify the primary key of the table:
Update-ApacheCouchDB -Connection $conn -Table "Movies" -Columns @("MovieRating") -Values @("R") -Where "Id = '70f6284d2a395396dbb3a60b4ce3d2d6'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-ApacheCouchDB -Connection $conn -Table Movies -Where "MovieRating = 'R'" | Update-ApacheCouchDB -Columns @("MovieRating") -Values @("R 2")

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434