dynamodb

package module
v0.0.0-...-74617ae Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNumber

func AddNumber(client *dynamodb.DynamoDB, table string, key map[string]*dynamodb.AttributeValue, name string, number int64) error

AddNumber func

func PrettyStructPrint

func PrettyStructPrint(data interface{})

PrettyStructPrint func

func QueryRecordWithFilter

func QueryRecordWithFilter(client *dynamodb.DynamoDB, table string, condition expression.KeyConditionBuilder, filter expression.ConditionBuilder) ([]map[string]*dynamodb.AttributeValue, error)

QueryRecordsWithFilter func

func QueryRecords

func QueryRecords(client *dynamodb.DynamoDB, table, index, key, value string, condition expression.ConditionBuilder) ([]map[string]*dynamodb.AttributeValue, error)

QueryRecords will return a list of records according to a specific condition table: DynamoDB table name index: DynamoDB index name key: DynamoDB key name value: DynamoDB value of key

func WriteRecord

func WriteRecord(client *dynamodb.DynamoDB, data Payload, table string) error

WriteRecord func writes only one record at a time data: Payload interface table: DynamoDB table name

func WriteRecords

func WriteRecords(client *dynamodb.DynamoDB, data []map[string]*dynamodb.AttributeValue, table string) error

WriteRecords func writes a bunch of record into DynamoDB

Types

type Payload

type Payload interface {
	Payload() (map[string]*dynamodb.AttributeValue, error)
}

Payload interface

type Payloads

type Payloads interface {
	Payloads() ([]map[string]*dynamodb.AttributeValue, error)
}

Payloads interface

Jump to

Keyboard shortcuts

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