dynamodbi

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoBackend

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

func (*DynamoBackend) Connect

func (b *DynamoBackend) Connect() (gorf.Db, error)

cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-west-2"))

if err != nil {
	log.Fatalf("unable to load SDK config, %v", err)
}

func (*DynamoBackend) Disconnect

func (b *DynamoBackend) Disconnect() error

type DynamoDB

type DynamoDB struct {
	DB *dynamodb.Client
}

func (*DynamoDB) AutoMigrate

func (d *DynamoDB) AutoMigrate(dst ...interface{}) error

func (*DynamoDB) Create

func (d *DynamoDB) Create(value interface{}) error

func (*DynamoDB) Filter

func (d *DynamoDB) Filter(dest interface{}, conds ...interface{}) error

func (*DynamoDB) First

func (d *DynamoDB) First(dest interface{}, conds ...interface{}) error

func (*DynamoDB) Get

func (d *DynamoDB) Get(dest interface{}, key string) error

func (*DynamoDB) GetUser

func (d *DynamoDB) GetUser(dest interface{}, id string) error

Jump to

Keyboard shortcuts

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