client

package
v0.0.0-...-35a449a Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BatchSize = 25
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	DB *dynamodb.DynamoDB
}

func (*Client) BatchCreate

func (c *Client) BatchCreate(ctx context.Context, items []*dynamodb.TransactWriteItem) error

BatchCreate は item をまとめて挿入する NOTE: dynamoDB の仕様上、一度の挿入は25個まで

func (*Client) CreateBatchItems

func (c *Client) CreateBatchItems(ents interface{}, table interface{}) ([]*dynamodb.TransactWriteItem, error)

CreateBatchItems は BatchCreate で使う item を用意する

Jump to

Keyboard shortcuts

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