Thinkful-Ed / node-sql-sequelize-lessons

Extension work on SQL and Sequelize for Thinkful's Node course
https://courses.thinkful.com/node-sql-001v1/unit/1
1 stars 4 forks source link

Describe using a file to create and run SQL commands #20

Open cklanac opened 6 years ago

cklanac commented 6 years ago

There has been some confusion about how to execute the code for the drills and the challenge. Several students have tried to execute all the code for the drills in the psql shell. And they are confused about the challenge where is says "Create a single SQL (.sql) file that creates tables and inserts some records into a blog database..."

My suggestion is to add section on running queries using a .sql file to the drills

psql -U dev -f ~/query.sql dev-restaurants-app

This would also lay the groundwork for the challenge