Closed fogfish closed 3 years ago
Usage of dynamo.ID is an approach to label a struct. However, it brings few practical issues:
dynamo.ID
dynamodb.AttributeValue
Consider a following scenario:
type A struct { ID curie.IRI `dynamodbav:"-"` Name string `dynamodbav:"name,omitempty"` } type dbA struct { A } func (x dbA) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error { return someHelperFunction(x.A.ID, x) } func (x dbA) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error { return someHelperFunction(&x.A.ID, &x) }
This approach still do not address an issue of linked data
type A struct { ID curie.IRI Link *curie.IRI }
closed by #38
Usage of
dynamo.ID
is an approach to label a struct. However, it brings few practical issues:dynamodb.AttributeValue
typeConsider a following scenario:
This approach still do not address an issue of linked data