Is it possible to save datetime to DynamoDB?

前端 未结 8 1332
清酒与你
清酒与你 2021-01-17 09:46

I have the next code:

users_table = Table(users_table_name, connection=Core.aws_dynamodb_connection)
users_table.put_item(data={
  \"login\": login,
  \"pass         


        
相关标签:
8条回答
  • 2021-01-17 10:01

    According to the documentation: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/JavaSDKHighLevel.html

    Date S (string type). The Date values are stored as ISO-8601 formatted strings.

    0 讨论(0)
  • 2021-01-17 10:03

    These are all the supported types for attribute values in DynamoDB as listed in their AWS Docs.

    B A Binary data type.

    Type: Blob

    Required: No

    BOOL A Boolean data type.

    Type: Boolean

    Required: No

    BS A Binary Set data type.

    Type: array of Blobs

    Required: No

    L A List of attribute values.

    Type: array of AttributeValue objects

    Required: No

    M A Map of attribute values.

    Type: String to AttributeValue object map

    Required: No

    N A Number data type.

    Type: String

    Required: No

    NS A Number Set data type.

    Type: array of Strings

    Required: No

    NULL A Null data type.

    Type: Boolean

    Required: No

    S A String data type.

    Type: String

    Required: No

    SS A String Set data type.

    Type: array of Strings

    Required: No

    0 讨论(0)
提交回复
热议问题