Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

mock dynamodb unit

# store.py
  
def write(data, table_name):
   dynamodb = boto3.resource('dynamodb')
   table = dynamodb.Table(table_name)
   with table.batch_writer() as batch:
       batch.put_item(Item=data)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #mock #dynamodb #unit
ADD COMMENT
Topic
Name
5+3 =