pglibrary with NPM.
workoutstable AND adds the corresponding rows in the
exercise_workoutstable to associate the new workout with exercises.
<DATE>) and assume that it is an ID of an exercise. For each of these IDs it will create a row in the
process.argv, something like the following. In the following example,
workoutExerciseswill be an array of all exercises input on the command line. We can then iterate over
workoutExercisesto insert the relevant records to our database.
exercise_idto get all workouts with that exercise. Make an
INNER JOINquery to list workout names with this exercise. Join on the
exercisestable to get the relevant exercise ID. Then follow the same logic as before to get workouts.