This Pull Request implements the database restoration feature using the POST /restore route. It includes the utility function performRestore() to execute the restoration command using MySQL and various other enhancements to support this feature.
Tasks Completed
Implemented the POST /restore route for database restoration.
Created the performRestore() function in restoreUtility.js to execute MySQL commands.
Added error handling for missing or invalid backup files.
Updated index.js to register the new /restore route.
Created a README.md in the /utils directory to document its purpose and usage.
Conducted tests to verify the restoration process using Postman.
Summary
This Pull Request implements the database restoration feature using the
POST /restore
route. It includes the utility functionperformRestore()
to execute the restoration command using MySQL and various other enhancements to support this feature.Tasks Completed
POST /restore
route for database restoration.performRestore()
function inrestoreUtility.js
to execute MySQL commands.index.js
to register the new/restore
route.README.md
in the/utils
directory to document its purpose and usage.Related Issues