GithubHelp home page GithubHelp logo

comp3005-a3-q1's Introduction

Assignment 3 - Q1: Student Database Management System

  • Brendon Luu
  • 101233289
  • March 18, 2024

Description:

This Python application provides a simple interface for managing student records in a PostgreSQL database. It supports basic CRUD (Create, Read, Update, Delete) operations, allowing users to:

  • add new student records
  • retrieve all student records
  • update student email addresses
  • delete student records

Functionality:

  • getAllStudents(): Retrieves and displays all student records from the database.
  • addStudent(first_name, last_name, email, enrollment_date): Adds a new student record to the database.
  • updateStudentEmail(student_id, new_email): Updates the email address for a specific student based on their student ID.
  • deleteStudent(student_id): Deletes a student record from the database based on their student ID.

Requirements

  • Python3
  • PostgreSQL
  • psycopg2 library (can be installed through the command: "pip install psycopg2-binary")

Running the Application

  1. Clone the repository or download the source code to your local machine
  2. Navigate to the project directory
  3. Update the connection parameters in the code to match your PostgreSQL setup (Specifically, the conn_params dictionary with your database name, user, and password)
  4. Test any function as needed as shown in the source code
  5. Execute the script by running the following command in the terminal: "python3 a3.py"

Relevant Links

comp3005-a3-q1's People

Contributors

brendonluu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.