Differences from Dynamo
Differences from Dynamo
Most Tynamo API
and Dynamo API
are similar, including input formats and output formats. However, to reduce the unnecessary work of Dynamo, Tynamo has several differences:
It is not necessary to explicitly name the table. Because use the table information stored in
@DynamoEntity
. Therefore, the following parameters are deleted and not used.TableName
Legacy conditional parameters in the Dynamo API are no longer used. Only expressions are allowed.
All param of
AttributeMap
changed to@DynamoEntity
type. The list is as follow.Item
Key
ExpressionAttributeValues
...
Automatically inserts the name of the class member or expression value used in the
expression
. Check here for more information.
Redesign example
Among the Dynamo APIs, input and output of putItem
methods are as follows.
By the design principle of Tynamo, it is changed as follows:
Most of the TynamoAPIs are designed as above.
Last updated
Was this helpful?