-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMiniSQL.cpp
More file actions
42 lines (35 loc) · 992 Bytes
/
MiniSQL.cpp
File metadata and controls
42 lines (35 loc) · 992 Bytes
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
#include "MiniSQL.h"
#include "Interpreter.h"
#include "API_Module.h"
#include "Catalog_Manager.h"
using namespace std;
APIMoudule api;
CatalogManager cm;
bool quitFlag = false;
int fukcount = 0;
int main(void)
{
string SQL;
//´òÓ¡Èí¼þÐÅÏ¢
cout<<endl;
cout << "\t\t*************************************************" << endl;
cout << "\t\t** MiniSQL **" << endl;
cout << "\t\t** Version (1.0) **" << endl;
cout << "\t\t** **" << endl;
cout << "\t\t** copyright(2014) all right reserved! **" << endl;
cout << "\t\t*************************************************" << endl;
cout << "Type HELP; for instructions." << endl;
cout << endl;
cm.read_tableInfo();
cm.read_indexInfo();
while(1)
{
cout << "MiniSQL-->> ";
SQL = Interpreter(api.read_input());
SQLstatement s(SQL);
api.API(s);
//s.outputinfo();
if (quitFlag) break;
}
return 0;
}