|
Azure Data Tables is a NoSQL data storage service that can be accessed from anywhere in the world via authenticated calls using HTTP or HTTPS. Tables scales as needed to support the amount of data inserted, and allows for the storing of data with non-complex accessing. The Azure Tables client can be used to access Azure Storage or Cosmos accounts.
Source code | API reference documentation
The Azure Tables SDK can access an Azure Storage or CosmosDB account.
The Azure Tables library allows you to interact with two types of resources:
endpoint
can be found on the page for your storage account in the [Azure Portal][azure_portal_account_url] under the "Access Keys" section or by running the following Azure CLI command:Common uses of the table service include:
The following components make up the Azure Tables Service:
The Azure Tables client library for C++ allows you to interact with each of these components through the use of a dedicated client object.
Two different clients are provided to interact with the various components of the Table Service:
TableClient
** -TableServiceClient
** -Entities are similar to rows. An entity has a **PartitionKey
**, a **RowKey
**, and a set of properties. A property is a name value pair, similar to a column. Every entity in a table does not need to have the same properties.
The following sections provide several code snippets covering some of the most common Table tasks, including:
In order to Create/Delete a table we need to create a TablesClient first.
In order to Delete a table we need to call the delete method on the previously created client.
In order to Create/Update/Merge/Delete entities we need to create a TablesClient first.
Then we initialize and populate an entity.
To create the entity on the server we call the CreateEntity method on the table client.
To update the entity, assume we made some changes to the entity, we call the UpdateEntity method on the table client.
To merge the entity, assume we made some changes to the entity, we call the MergeEntity method on the table client.
To delete the entity, we call the DeleteEntity method on the table client.
In order to get the service properties we need to create a TableServiceClient first.
To get the service properties we call the GetProperties method on the table service client.
To list the tables in the account we call the ListTables method on the table service client.
To get the statistics of the account we call the GetStatistics method on the table service client.
See the C++ Contributing Guide for details on building, testing, and contributing to these libraries.
See the Storage Testing Guide for how to set up storage resources running unit tests.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit cla.microsoft.com.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.