From 817dca3b26690637e55b4a9b640f796948be0a2c Mon Sep 17 00:00:00 2001 From: "Peter J. Keleher" <keleher@cs.umd.edu> Date: Sat, 9 Sep 2023 11:23:26 -0400 Subject: [PATCH] auto --- assign1.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/assign1.md b/assign1.md index 7caf615..e6b0e4d 100644 --- a/assign1.md +++ b/assign1.md @@ -62,11 +62,21 @@ You are also provided with a Python file `SQLTesting.py` for testing your answer - Question #4 - Your solution should assume the current year is **2020, not 2023**. - Question #9 - Your solution should order by `countyname, statename ascending` . -### Native Mac Instructions -You should be able to install postgresql w/ homebrew, as shown in Assignment 1. For this assignment you will need to submit queries from a python script (`SQLTesting.py`), which relies on `psycopg2`. Install via `sudo pip3 install psycopg2`. You will need to change the user `vagrant` to your username in `SQLTesting.py`. -### Submission Instructions -Submit the `queries.py` file on Gradescope under <a href="https://www.gradescope.com/courses/535193/assignments/2852219">Assignment 1</a>. +### Apple Silicon (M1, M2...) Macs + +You can use *Parallels* (not free) or **use postgres directly**, without vagrant and vmbox, via **Homebrew**: +``` + brew install postgresql@14 + brew services restart postgresql@14 +``` + +Before running `SQLTesting.py`, you also need to install `psycopg2`: +``` + pip3 install psycopg2 +``` + +## Submission Instructions +See `queries.py` for queries to write. +Submit your altered `queries.py` file on Gradescope under <a href="https://www.gradescope.com/courses/535193/assignments/2852219">Assignment 1</a>. -### Assignment Questions -See `queries.py` file. -- GitLab