Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support dynamoattribute.UnixTime on CreateTable #107

Closed
wants to merge 3 commits into from
Closed

support dynamoattribute.UnixTime on CreateTable #107

wants to merge 3 commits into from

Conversation

Songmu
Copy link
Contributor

@Songmu Songmu commented Sep 16, 2019

The dynamodbattribute.UnixTime is a type for storing UNIX epoch into DynamoDB that is officially provided by "aws-sdk-go". Isn't it reasonable to treat it as "N" dynamodb.AtributeType when creating a table?

How do you think?

The tag definition feature was added at #104, but minimum depends version of aws-sdk-go in go.mod is old.

The field dynamodb.CreateTableInput.Tags is introduced at aws-sdk-go@v1.19.18.

ref. https://github.com/aws/aws-sdk-go/releases/tag/v1.19.18

So, bump the depends.
@Songmu Songmu changed the title support dynamoattribute.UnixTime support dynamoattribute.UnixTime on CreateTable Sep 16, 2019
@guregu
Copy link
Owner

guregu commented Sep 16, 2019

I decided to implement support for dynamodbattribute.Marshaler instead of hardcoding support for UnixTime. This fixes UnixTime support and hopefully allows other kinds of types to be used as keys too. I've merged it into master (see: abcae44). I appreciate the tests.

I've released version v1.4.1 which includes your two PRs.
Thanks again!

@guregu guregu closed this Sep 16, 2019
@Songmu Songmu deleted the dynamoattribute-UnixTime branch September 17, 2019 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants