dynamodb_service

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttribPk = "_pk"
	AttribSk = "_sk"
)

Variables

This section is empty.

Functions

func New

New - Create a new DynamoDB key value plugin implementation

func NewWithClient

func NewWithClient(provider core.AwsProvider, client *dynamodb.Client) (document.DocumentService, error)

NewWithClient - Mainly used for testing

Types

type DynamoDocService

type DynamoDocService struct {
	document.UnimplementedDocumentPlugin
	// contains filtered or unexported fields
}

DynamoDocService - AWS DynamoDB AWS Nitric Document service

func (*DynamoDocService) Delete

func (s *DynamoDocService) Delete(ctx context.Context, key *document.Key) error

func (*DynamoDocService) Get

func (*DynamoDocService) Query

func (s *DynamoDocService) Query(ctx context.Context, collection *document.Collection, expressions []document.QueryExpression, limit int, pagingToken map[string]string) (*document.QueryResult, error)

func (*DynamoDocService) QueryStream

func (s *DynamoDocService) QueryStream(ctx context.Context, collection *document.Collection, expressions []document.QueryExpression, limit int) document.DocumentIterator

func (*DynamoDocService) Set

func (s *DynamoDocService) Set(ctx context.Context, key *document.Key, value map[string]interface{}) error

Jump to

Keyboard shortcuts

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