omise

package module
v0.0.0-...-ca4c560 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 6 Imported by: 0

README

Omise

Simple dynamodb db wrapper.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetItem

func GetItem[model any](store *Store, pk string, sk string) (*model, error)

Transform map to model.

func GetItems

func GetItems[model any](store *Store, filterExpression string, expressionAttributeValues map[string]types.AttributeValue) ([]model, error)

func SaveItem

func SaveItem(store *Store, model Model) error

Types

type Model

type Model interface {
	Pk() string
	Sk() string
}

type Store

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

func NewStore

func NewStore(TableName string, Region string, KeyId string, SecretKey string) *Store

Jump to

Keyboard shortcuts

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