Question: * * * IN PYTHON * * * Step 1 : Implement database setup methods in DbManager.py DbManager.py contains class DbManager which allows the food
IN PYTHONStep : Implement database setup methods in DbManager.py
DbManager.py contains class DbManager which allows the food vendor to create and access the database. Implement the following attributes and methods for class DbManager:
Attributes
Connection conn Connection object that, once connected, will be used throughout the program.
Instance methods
Database Setup Methods
connect
Establishes a connection to an inmemory database.
disconnect
Disconnects from the existing database.
createmenutabledatafile
Reads a tsv file and creates a table named menu.
Calls insertmenu to insert individual entries to the table.
insertmenumenu
Reads a menu tuple containing the column values of a menu entry category itemname, description, price, preptime, availability
Inserts an entry into the menu table with column values listed in the parameter.
createusertabledatafile
Reads a tsv file and creates a table named user.
Calls insertuser to insert individual entries into the table.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
