mirror of
https://github.com/sprockets/sprockets.clients.dynamodb.git
synced 2024-11-23 19:29:51 +00:00
Merge pull request #7 from kcierzan/put-item-return-values
Allow put_item to accept string arg for return_values
This commit is contained in:
commit
08de9ad4a4
1 changed files with 2 additions and 2 deletions
|
@ -515,7 +515,7 @@ class DynamoDB(object):
|
||||||
payload['Limit'] = limit
|
payload['Limit'] = limit
|
||||||
return self.execute('ListTables', payload)
|
return self.execute('ListTables', payload)
|
||||||
|
|
||||||
def put_item(self, table_name, item, return_values=False,
|
def put_item(self, table_name, item, return_values=None,
|
||||||
condition_expression=None,
|
condition_expression=None,
|
||||||
expression_attribute_names=None,
|
expression_attribute_names=None,
|
||||||
expression_attribute_values=None,
|
expression_attribute_values=None,
|
||||||
|
@ -623,7 +623,7 @@ class DynamoDB(object):
|
||||||
if return_item_collection_metrics:
|
if return_item_collection_metrics:
|
||||||
payload['ReturnItemCollectionMetrics'] = 'SIZE'
|
payload['ReturnItemCollectionMetrics'] = 'SIZE'
|
||||||
if return_values:
|
if return_values:
|
||||||
payload['ReturnValues'] = 'ALL_OLD'
|
payload['ReturnValues'] = return_values
|
||||||
return self.execute('PutItem', payload)
|
return self.execute('PutItem', payload)
|
||||||
|
|
||||||
def get_item(self, table_name, key_dict, consistent_read=False,
|
def get_item(self, table_name, key_dict, consistent_read=False,
|
||||||
|
|
Loading…
Reference in a new issue