PostgreSQL client for node.js.
-
Updated
Apr 1, 2022 - JavaScript
Add a description, image, and links to the node-postgres topic page so that developers can more easily learn about it.
To associate your repository with the node-postgres topic, visit your repo's landing page and select "manage topics."
Problem
For example, when updating a restaurant entry in the database with a new name, location, and price range, the reviews for the old restaurant persist. This does not seem ideal as the review would be for a restaurant that no longer exists.
Fix
When updating a restaurant in the database, on the back-end code delete all reviews related to the old restaurant. When the event handle