Skip to content

Commit

Permalink
feat: add deleteitem function to write interface (#16)
Browse files Browse the repository at this point in the history
Added for DeleteItem to WriteAPI interface.
Updated README for correct docker run command
  • Loading branch information
shidil authored Sep 10, 2024
2 parents 6e22d4e + 44042fc commit aaced21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ table, err := dynago.NewClient(ctx, dynago.ClientOptions{
### Run dynago.locally

```sh
docker run -p docker run -p 8000:8000 amazon/dynago.local
docker run -p 8000:8000 amazon/dynamodb-local
```

```go
Expand Down
1 change: 1 addition & 0 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type WriteAPI interface {
// Create or update given item in DynamoDB. Must implemenmt DynamoRecord interface.
// DynamoRecord.GetKeys will be called to get values for parition and sort keys.
PutItem(ctx context.Context, pk Attribute, sk Attribute, item interface{}) error
DeleteItem(ctx context.Context, pk string, sk string) error
}

type TransactionAPI interface {
Expand Down

0 comments on commit aaced21

Please sign in to comment.