Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexander Jabbour
356 group 40 project
Commits
84766994
Commit
84766994
authored
Dec 23, 2021
by
alexjubs
Browse files
starting message
parent
2f02c053
Changes
4
Hide whitespace changes
Inline
Side-by-side
client_jubs/__pycache__/parser.cpython-310.pyc
View file @
84766994
No preview for this file type
client_jubs/__pycache__/utils.cpython-310.pyc
View file @
84766994
No preview for this file type
client_jubs/main.py
View file @
84766994
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
...
...
client_jubs/utils.py
View file @
84766994
...
...
@@ -110,3 +110,4 @@ def get_base_func(command):
)
print
(
f
"GETTING rows from
{
get_rows_args
.
table
}
:
\n
with filters:
{
filters
}
\n
"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment