dynamodbx

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

dynamodbx

A Golang driver extension of AWS DynamoDB

Documentation

Index

Constants

View Source
const (
	TAG               = "dynamodbav"
	TAG_INDEX         = "index"
	TAG_SECONDARY     = "secondary"
	TAG_SECONDARY_FOR = "secondaryfor"
)

Variables

This section is empty.

Functions

func ToDynamoDBType

func ToDynamoDBType(t reflect.Type) (string, error)

func ToIndexName

func ToIndexName(key []*dynamodb.KeySchemaElement) string

Types

type BaseModel

type BaseModel struct {
	TableName string
	Type      reflect.Type

	Client *dynamodb.DynamoDB
	// contains filtered or unexported fields
}

func NewBaseModel

func NewBaseModel(region string, data interface{}) (*BaseModel, error)

func NewBaseModelWithCreated

func NewBaseModelWithCreated(region string, data interface{}) (*BaseModel, bool, error)

func (*BaseModel) GetIndexes

func (*BaseModel) Insert

func (b *BaseModel) Insert(v interface{}) error

Jump to

Keyboard shortcuts

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