You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should clear out the old commented code to keep a clean working area.
Promisfy database
I wouldn't bother now but for next project you can implement the database, queries and tests with promises instead which makes life a bit easier with no more callbacks.
some headaches tracing through the whole process but basically there is a promise enabled sql library for each part. You can look at this example for how I got it working https://github.com/facn6/food-diary-week-8/tree/master/src/model/database (note tests work but there's a better implementation)
The text was updated successfully, but these errors were encountered:
Great work on promisfying your hash functions 😎
You should clear out the old commented code to keep a clean working area.
Promisfy database
I wouldn't bother now but for next project you can implement the database, queries and tests with promises instead which makes life a bit easier with no more callbacks.
some headaches tracing through the whole process but basically there is a promise enabled sql library for each part. You can look at this example for how I got it working
https://github.com/facn6/food-diary-week-8/tree/master/src/model/database
(note tests work but there's a better implementation)
The text was updated successfully, but these errors were encountered: