pivot_forecast/routes/scale/generate_route_sql.sh

5 lines
348 B
Bash
Executable File

# execure the sql for scale which builds the sql and inserts into a table
psql -h hptrow.me -p 54329 -d ubm -U ptrowbridge -f ./setup_sql/05_gen_scale.sql
# pull the sql out of the table and write it to route directory
psql -h hptrow.me -p 54329 -d ubm -U ptrowbridge -c "SELECT t FROM fc.sql WHERE cmd = 'scale'" -t -A -o ./routes/scale/scale.sql