Documentation
¶
Index ¶
- Variables
- func JSONStringify(v any) string
- type Client
- func (c *Client) BatchDeleteItems(ctx context.Context, tableName string, keys []map[string]types.AttributeValue) (*ddb.BatchWriteItemOutput, error)
- func (c *Client) Scan(ctx context.Context, input *ddb.ScanInput) (*ddb.ScanOutput, error)
- func (c *Client) ScanAll(ctx context.Context, input *ddb.ScanInput) ([]map[string]types.AttributeValue, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoItems = errors.New("no items found")
)
Functions ¶
func JSONStringify ¶
JSONStringify - returns a json string representation of the given value
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client - dynamodb client to query the table (get,put,query,scan)
func NewWith ¶
func NewWith(ctx context.Context, configOpts func(*config.LoadOptions) error, dbOpts ...func(*ddb.Options)) (*Client, error)
NewWith - creates a new dynamodb client with exposed functional options. Use this client if you wish to have flexibility with some of the more advanced options.
func (*Client) BatchDeleteItems ¶
func (c *Client) BatchDeleteItems(ctx context.Context, tableName string, keys []map[string]types.AttributeValue) (*ddb.BatchWriteItemOutput, error)
BatchDeleteItems - deletes items in a batch Note, max size is 25 items within a batch
Click to show internal directories.
Click to hide internal directories.