partition_key function

Container partition key information

Container partition key information

get_partition_key(container) list_partition_key_values(container) list_partition_key_ranges(container)

Arguments

  • container: An object of class cosmos_container.

Returns

For get_partition_key, the name of the partition key column as a string.

For list_partition_key_values, a character vector of all the values of the partition key.

For list_partition_key_ranges, a character vector of the IDs of the partition key ranges.

Details

These are functions to facilitate working with a Cosmos DB container, which often requires knowledge of its partition key.

  • Maintainer: Hong Ooi
  • License: MIT + file LICENSE
  • Last published: 2021-01-18