-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
39 lines (31 loc) · 928 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from main import *
while True:
user_input = input(
"""
Choose from the following commands:
delete
insert
select
test
update
end
""").lower()
# if user_input == "create":
# table_name = input("Table name? ")
# create(table_name)
if user_input == "delete":
_id = input("Which id would you like to delete? ")
delete(_id)
if user_input == "insert":
_name = input("What do you want to name your insert? ")
insert(_name)
if user_input == "select":
select()
if user_input == "test":
test()
if user_input == "update":
_id = input("Which id would you like to update? ")
_name = input("What do you want to update the name to? ")
update(_id, _name)
if user_input == "end":
break