QueryResults Output Object (Invoke-AdobeCommerce Cmdlet)
クエリの結果。
Syntax
PSObject QueryResultsRemarks
検索を実行すると、結果がPSObject のパイプラインに一度に一行ずつ返されます。各行オブジェクトは対応する値を持つテーブルのカラムを含みます。行オブジェクトにはテーブルと接続も含まれ、パイプライン経由でこれらの値をほかのcmdlet に簡単にインプットできます。以下に、JSON 形式の行オブジェクトの例を示します。
PS C:\> $conn = Connect-AdobeCommerce -User 'admin' -Password 'admin' -Url 'https://myadobecommercehost'
PS C:\> $row = Select-AdobeCommerce -Connection $conn -Table "Products" -Columns (Price, Name) -Where "EntityId = '238'" | select -first 1
PS C:\> $row | ConvertTo-Json
{
"Connection": {
},
"Table": "Products",
"Columns": [
],
"Price": "MyPrice",
"Name": "MyName"
}