AzureStorage.Table.insert_entity
You're seeing just the function
insert_entity
, go back to AzureStorage.Table module for more information.
Specs
insert_entity( AzureStorage.Request.Context.t(), String.t(), AzureStorage.Table.EntityDescriptor.t() ) :: {:ok, map()} | {:error, String.t()}
The Insert Entity operation inserts a new entity into a table.
ref. https://docs.microsoft.com/en-us/rest/api/storageservices/insert-entity
alias AzureStorage.Table.EntityDescriptor
import AzureStorage.Table.EntityGenerator
entity = %EntityDescriptor{}
|> partition_key("partition_key_1")
|> row_key("row_key_1")
|> string("Message", "Hello World")
context |> AzureStorage.Table.insert_entity("table1", entity)
# {:ok, %{"ETag" => ...}}