Cmdlets for GitHub

Build 24.0.9060

Update-GitHub Cmdlet

Parameters   Output Objects  

Updates GitHub data.

Syntax

Update-GitHub [parameters]

Remarks

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

$conn = Connect-GitHub -OAuthClientId 'MyOAuthClientId' -OAuthClientSecret 'MyOAuthClientSecret' -CallbackURL 'http://localhost:33333'
Update-GitHub -Connection $conn -Table "Repositories" -Columns @("OwnerLogin") -Values @("1668776136772254") -Id "mojombo"
The Where parameter can also be used to specify the primary key of the table:
Update-GitHub -Connection $conn -Table "Repositories" -Columns @("OwnerLogin") -Values @("1668776136772254") -Where "Id = 'mojombo'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-GitHub -Connection $conn -Table Repositories -Where "OwnerLogin = 'mojombo'" | Update-GitHub -Columns @("OwnerLogin") -Values @("mojombo 2")

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