-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add instruction for specifying odatatype for entity values
- Loading branch information
Showing
3 changed files
with
410 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1860,7 +1860,13 @@ | |
- name: --entity -e | ||
type: list | ||
short-summary: Space-separated list of key=value pairs. Must contain a PartitionKey and a RowKey. | ||
long-summary: The PartitionKey and RowKey must be unique within the table, and may be up to 64Kb in size. If using an integer value as a key, convert it to a fixed-width string which can be canonically sorted. For example, convert the integer value 1 to the string value "0000001" to ensure proper sorting. | ||
long-summary: > | ||
The PartitionKey and RowKey must be unique within the table, and may be up to 64Kb in size. | ||
If using an integer value as a key, convert it to a fixed-width string which can be canonically sorted. | ||
For example, convert the integer value 1 to the string value "0000001" to ensure proper sorting. \n | ||
To manually specify the value type, an additional key,value pair can be added in the format of | ||
[email protected]=<EdmType> where <EdmType> can be from the following list: Edm.Binary, Edm.Int64, Edm.Guid, | ||
Edm.DateTime, Edm.String, Edm.Int32, Edm.Double, Edm.Boolean | ||
- name: --if-exists | ||
type: string | ||
short-summary: Behavior when an entity already exists for the specified PartitionKey and RowKey. | ||
|
@@ -1869,6 +1875,9 @@ | |
text: | | ||
az storage entity insert --connection-string $connectionString --entity PartitionKey=AAA RowKey=BBB Content=ASDF2 --if-exists fail --table-name MyTable | ||
crafted: true | ||
- name: Insert an entity when specifying the odatatype. | ||
text: | | ||
az storage entity insert --connection-string $connectionString --entity PartitionKey=AAA RowKey=BBB Content=0152 [email protected]=Edm.String --if-exists merge --table-name MyTable | ||
""" | ||
|
||
helps['storage entity merge'] = """ | ||
|
Oops, something went wrong.