This is a place for me to learn postgreSQL. The main idea is that given a table of recipes and ingredients I should be able to
- Be able to output cooking instructions for a recipe
- Make a weekly shopping list
- Calculate calories per meal
- See which recipes work best with ingredients in my pantry and
- Approximate the cost of the shopping list
Given that the database is partially filled, I need a way to interact with it in a more reasonable way. This can be broken into two main blocks of work:
- Have a script which walks the user through adding ingredients to a new recipe.
- Write functions for each of the queries in the .sql file so that they’re accessible from anywhere.
It would be nice to have a fully featured UI, but that’s outside of the scope of the project at the moment.
- Build the database from a csv
- Changed recipe_id, ingredient_id -> id
- Switch to “in” instead of conditional
- Indexed names
- Sort “pantry search” by a count
- Names are unique