Is it possible to save datetime to DynamoDB?

前端 未结 8 1336
清酒与你
清酒与你 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: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

提交回复
热议问题