-
Notifications
You must be signed in to change notification settings - Fork 0
samanthabeilman/COMP3005-A3-Q1
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
COMP 3005
Assignment 3 - Question 1
Samantha Beilman
101198530
Thank you for your time.
Video Link:
https://www.youtube.com/watch?v=NWCZ5_PYDQQ
To compile and run:
I use a conda environment, but you can use any python environment.
ensure that you have installed:
psycopg3
run from the CWD:
python main.py
Important Notes:
• If you need to test my submission, please change the constants for database name, username and password in a3q1.py to match your system
Included Files:
main.py - application code to drive the user interactions
a3q1.py - the application code which solves the assignment
a3q1-setup.sql - file which will set up the database to be used by the application
this README file
Design Decisions:
• I decided to use psycopg3 because I want to do the first project option, so I wanted to get some experience now.
• The connection function required a password on my system, so I added that field.
• Either change the password if needed, or remove that field if you don't have a password on.
• Decided to connect within each function so that each one would be entirely self-sufficient and I wouldn't need to worry about the scope of cur and conn.
Resources:
Started from this code sample in the psycopg documentation:
• https://www.psycopg.org/psycopg3/docs/basic/usage.html#shortcutsAbout
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published