metadb.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:boss 作者: jhuapl-boss 项目源码 文件源码
def update_meta(self, lookup_key, key, new_value):
        """
        Update the Value for the given key
        Args:
            lookup_key: Key for the object requested
            key: Metadata key
            new_value: New meta data value

        Returns:

        """

        response = self.table.update_item(
            Key={
                'lookup_key': lookup_key,
                'key': key,
            },
            UpdateExpression='SET metavalue = :val1',
            ExpressionAttributeValues={
                ':val1': new_value
            },
            ReturnValues='UPDATED_NEW'
        )
        return response
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号