Skip to content

Commit

Permalink
📝 add createTableWithIndices suggestion to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
oharaandrew314 committed Feb 28, 2024
1 parent 330e5f1 commit 8fc0ae5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ data class Post(
)
```

## Gotchas

The `DynamoDbAsyncClient.createTable` method does not create the indices your table definition might have defined.
This is unlike the `DynamoDbClient`, which, in recent versions of the AWS SDK, performs as you would expect.

To work around this, `DynamoKt` offers a `createTableWithIndices` extension method to provide the expected behaviour.

## Samples

See the [Samples](/src/test/kotlin/io/andrewohara/dynamokt/samples)

0 comments on commit 8fc0ae5

Please sign in to comment.