Commit 84766994 authored by alexjubs's avatar alexjubs
Browse files

starting message

parent 2f02c053
from utils import *
from parser import *
options_switchcase = {
"insert" : insert_base_func,
......@@ -8,20 +9,31 @@ options_switchcase = {
}
if __name__ == "__main__":
# message at the start:
print(
'''
Welcome to our ECE 356 final project client!
These are our base commands:
These are our base commands. For each of them, you must start by specifying the --table:
insert - inserts an entry into the table
modify - modifies an entry in a table by primary key
delete - deletes a row (or mulitple rows) from the table
get - fetches a set of rows from a table in the DB
These are the more 'user friendly' commands:
create-new-student
create-new-course
create-new-vle
create-new-assessment
assign-assessment-to-student
unregister-student
get-all-courses
get-course-offerings-by-year
''')
while True:
command = input("Command: ").split()
if len(command) == 0: continue
......
......@@ -110,3 +110,4 @@ def get_base_func(command):
)
print(f"GETTING rows from {get_rows_args.table}: \n with filters: {filters} \n")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment