Question: I NEED HELP URGENTLY DO IT in PYTHON here: # Enter your code here. Read input from STDIN. Print output to STDOUT Query by Example

 I NEED HELP URGENTLY DO IT in PYTHON here: # Enteryour code here. Read input from STDIN. Print output to STDOUT Queryby Example JSON document store Query By Example allows a client to

I NEED HELP URGENTLY

DO IT in PYTHON here:

# Enter your code here. Read input from STDIN. Print output to STDOUT

Query by Example JSON document store Query By Example allows a client to specify a structure in which is used as the example, and all entities which match are returned. Implement a basic storage mechanism which allows a user to store documents in JSON format. The structure of the document may be otherwise arbitrary. The program accepts a command through stdin followed by a space, followed by a document, followed by a newline. There are three allowed commands . add, store the given document get, find all documents which have the same properties and property values as the given document, and emit them to stdout - delete, remove all documents which have the same properties and property values as the given document. The commands are all lowercase Given the input: add f"id":1, "last": "Doe", "first": "John,"location":("city": "Oakland", "state" "CA", "postalCode": "94607),"active" true) add ("id":2, "last":"Doe", "first": "Jane", "location":"city": "San Francisco", "state": "CA","postalcode": "94105"),"active" :true add f"id":3,"last" "Black","first" "Jim", "location":"city": "Spokane", "state": "WA", "postalCode": "99207","active" true) add ("id":4, "last": "Frost","first" "Jack", "location":("city":"Seattle", "state": "WA","postalCode": "98204", "active":false) get "location" ("state": "WA", "active":true) get ("id":1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!