cosmos

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: BSD-2-Clause Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMoreItems = errors.New("no more items")

Functions

func CreateItem

func CreateItem(ctx context.Context, client *azcosmos.ContainerClient, partitionKey azcosmos.PartitionKey, item any) (err error)

func IsNoMoreItems

func IsNoMoreItems(err error) bool

func KeyExist

func KeyExist(ctx context.Context, client *azcosmos.ContainerClient, partitionKey azcosmos.PartitionKey, itemID string) (exist bool, err error)

func PointCreate

func PointCreate(ctx context.Context, client *azcosmos.ContainerClient, key string, item any) (err error)

func PointDelete

func PointDelete(ctx context.Context, client *azcosmos.ContainerClient, key string) (err error)

func PointKeyExist

func PointKeyExist(ctx context.Context, client *azcosmos.ContainerClient, key string) (exist bool, err error)

func PointPatch

func PointPatch(ctx context.Context, client *azcosmos.ContainerClient, key string, patch azcosmos.PatchOperations) (err error)

func PointRead

func PointRead(ctx context.Context, client *azcosmos.ContainerClient, key string, item any) (err error)

func Query

func Query(client *azcosmos.ContainerClient, partitionKey azcosmos.PartitionKey, query string) (next func(ctx context.Context, v any) (err error))

Types

This section is empty.

Jump to

Keyboard shortcuts

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