cosmosdb

package
v0.0.0-...-0da26dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainer

func CreateContainer(client *azcosmos.Client, databaseName, containerName, partitionKey string) error

func CreateDatabase

func CreateDatabase(client *azcosmos.Client, databaseName string) error

func CreateItem

func CreateItem(client *azcosmos.Client, databaseName string, containerName string, itemType string, id string, item persist.MarshallableItem, start time.Time, end time.Time) error

func DeleteItem

func DeleteItem(client *azcosmos.Client, databaseName, containerName, partitionKey, itemId string) error

func ReadItem

func ReadItem(client *azcosmos.Client, databaseName string, containerName string, partitionKey string, itemId string) (persist.MarshallableItem, error)

func ReadItems

func ReadItems(client *azcosmos.Client, databaseName string, containerName string, partitionKey string) ([]persist.MarshallableItem, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL