Performing CRUD operations in tables (key value store)

Table storage API provides us with the ability to store key value pair data efficiently and easily. You need to create a new table database inside Cosmos DB to perform the CRUD operation.

  1. Log in to your Azure portal and click on the Azure Cosmos DB option on the left side of the option bar.
  2. Click on the + button and give your new database a proper ID, then choose the Table (key-value) option from the API dropdown.
  1. You can create a new resource or use the existing one. Select the location where most writing will happen and click on the Create button. You can refer to the screenshot for reference:
  1. Now you can create a table in it to store our data. Refer to the following screenshot for reference:

We can perform the CRUD operation on the same data. We need to create the Table entity to store data in that format. Click on the Add new entity and add the row key and partition key. Refer to Chapter 3, Cosmos DB Multi-model Databases, for the same.

Once you have created the entity, we can add the data in it. Also, you can copy the connection string from the Azure portal and paste it to use it further with your custom application.

You can add as many entities as you want and, once done, you can delete, edit, or query it from the data explorer.

Now, let's see our last database API, that is, the Cassandra API.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.50.188