Package Usage: go: github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos
Package azcosmos implements the client to interact with the Azure Cosmos DB SQL API.
The azcosmos package is capable of:
Types of Credentials
The clients support different forms of authentication. The azcosmos library supports
authorization via Azure Active Directory or an account key.
Using Azure Active Directory
To create a client, you can use any of the TokenCredential implementations provided by `azidentity`.
Using account keys
To create a client, you will need the account's endpoint URL and a key credential.
Using connection string
To create a client, you will need the account's connection string.
The following are relevant concepts for the usage of the client:
The following sections provide several code snippets covering some of the most common Table tasks, including:
Create a database and obtain a `DatabaseClient` to perform operations on your newly created database.
Create a container on an existing database and obtain a `ContainerClient` to perform operations on your newly created container.
Creating, reading, and deleting items
Querying items
Querying items with parametrized queries
Using Transactional batch
14 versions
Latest release: almost 2 years ago
64 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos