-
Notifications
You must be signed in to change notification settings - Fork 874
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tables] change Query to List (#15099)
* adding List methods * moving helper to zt file * improving docstrings * changing all query methods to list * updating docstrings
- Loading branch information
1 parent
e224444
commit f905d11
Showing
17 changed files
with
2,119 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package aztable | ||
|
||
// QueryOptions contains a group of parameters for the Table.Query method. | ||
type ListOptions struct { | ||
// OData filter expression. | ||
Filter *string | ||
// Specifies the media type for the response. | ||
Format *OdataMetadataFormat | ||
// Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". | ||
Select *string | ||
// Maximum number of records to return. | ||
Top *int32 | ||
} | ||
|
||
func (l *ListOptions) toQueryOptions() *QueryOptions { | ||
if l == nil { | ||
return &QueryOptions{} | ||
} | ||
|
||
return &QueryOptions{ | ||
Filter: l.Filter, | ||
Format: l.Format, | ||
Select: l.Select, | ||
Top: l.Top, | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
sdk/tables/aztable/recordings/TestServiceClient_Cosmos/TestListTables-variables.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
COSMOS_TABLES_ENDPOINT_SUFFIX: cosmos.azure.com | ||
TABLES_COSMOS_ACCOUNT_NAME: seankaneprim | ||
TABLES_PRIMARY_COSMOS_ACCOUNT_KEY: Kg== | ||
randomSeed: "1626796896" |
Oops, something went wrong.