dynamo

package
v0.996.0-MLPAB1745invi... Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg aws.Config, tableName string) (*Client, error)

func (*Client) AllByKeys added in v0.712.0

func (c *Client) AllByKeys(ctx context.Context, keys []Key) ([]map[string]types.AttributeValue, error)

func (*Client) AllByPartialSk added in v0.742.0

func (c *Client) AllByPartialSk(ctx context.Context, pk, partialSk string, v interface{}) error

func (*Client) AllForActor added in v0.712.0

func (c *Client) AllForActor(ctx context.Context, sk string, v interface{}) error

func (*Client) AllKeysByPk added in v0.785.0

func (c *Client) AllKeysByPk(ctx context.Context, pk string) ([]Key, error)

func (*Client) BatchPut added in v0.794.0

func (c *Client) BatchPut(ctx context.Context, values []interface{}) error

func (*Client) Create

func (c *Client) Create(ctx context.Context, v interface{}) error

func (*Client) DeleteKeys added in v0.785.0

func (c *Client) DeleteKeys(ctx context.Context, keys []Key) error

func (*Client) DeleteOne added in v0.794.0

func (c *Client) DeleteOne(ctx context.Context, pk, sk string) error

func (*Client) LatestForActor added in v0.712.0

func (c *Client) LatestForActor(ctx context.Context, sk string, v interface{}) error

func (*Client) One added in v0.712.0

func (c *Client) One(ctx context.Context, pk, sk string, v interface{}) error

func (*Client) OneByPartialSk added in v0.712.0

func (c *Client) OneByPartialSk(ctx context.Context, pk, partialSk string, v interface{}) error

func (*Client) OneByUID added in v0.712.0

func (c *Client) OneByUID(ctx context.Context, uid string, v interface{}) error

func (*Client) Put

func (c *Client) Put(ctx context.Context, v interface{}) error

func (*Client) Update added in v0.794.0

func (c *Client) Update(ctx context.Context, pk, sk string, values map[string]types.AttributeValue, expression string) error

type ConditionalCheckFailedError added in v0.794.0

type ConditionalCheckFailedError struct{}

func (ConditionalCheckFailedError) Error added in v0.794.0

type Key

type Key struct {
	PK string
	SK string
}

type Logger added in v0.794.0

type Logger interface {
	Print(v ...interface{})
}

type MultipleResultsError

type MultipleResultsError struct{}

func (MultipleResultsError) Error

func (n MultipleResultsError) Error() string

type NotFoundError

type NotFoundError struct{}

func (NotFoundError) Error

func (n NotFoundError) Error() string

Jump to

Keyboard shortcuts

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