Cmdlets for HubDB

Build 24.0.8963

Update-HubDB Cmdlet

Parameters   Output Objects  

Updates HubDB data.

Syntax

Update-HubDB [parameters]

Remarks

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

$conn = Connect-HubDB -AuthScheme "OAuth" -OAuthClientID "MyOAuthClientID" -OAuthClientSecret "MyOAuthClientSecret" -CallbackURL "http://localhost:33333"
Update-HubDB -Connection $conn -Table "NorthwindProducts" -Columns @("Name") -Values @("Jon Doe") -Id "1"
The Where parameter can also be used to specify the primary key of the table:
Update-HubDB -Connection $conn -Table "NorthwindProducts" -Columns @("Name") -Values @("Jon Doe") -Where "Id = '1'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-HubDB -Connection $conn -Table NorthwindProducts -Where "Industry = 'Floppy Disks'" | Update-HubDB -Columns @("Industry") -Values @("Floppy Disks 2")

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