-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDatabaseEngine.sh
executable file
·73 lines (53 loc) · 1.46 KB
/
DatabaseEngine.sh
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
#export PATH=$PATH:$PWD
select choice in CreateDatabase CreateTable DeleteDB DeleteTable ModifyTable InsertDataIntoTable ViewTable DescribeTable ShowDataBase ShowTables DeleteRecord SelectRecordByID Exit; do
case $choice in
CreateDatabase)
./create_Database.sh
;;
CreateTable)
./create_table.sh
;;
DeleteDB)
./delete_Database.sh
;;
\
DeleteTable)
./delete_table.sh
;;
\
ModifyTable)
./modify_table.sh
;;
\
InsertDataIntoTable)
./insert_data.sh
;;
\
ViewTable)
./view_table.sh
;;
DescribeTable)
./describe_table.sh
;;
ShowDataBase)
./show_Database.sh
;;
ShowTables)
./show_tables.sh
;;
DeleteRecord)
./delete_record.sh
;;
SelectRecordByID)
# ./print_record.sh
./print_record.sh
;;
Exit)
exit
;;
*)
echo "$REPLY is not one of the choices"
;;
esac
done