-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.h
More file actions
30 lines (19 loc) · 932 Bytes
/
Copy pathapi.h
File metadata and controls
30 lines (19 loc) · 932 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
#ifndef API_H
#define API_H
#include "Structure.h"
#include <ctime>
#include<assert.h>
void CreateIndex(Index& index);
void DropIndex(const string indexName, const string tableName);
void CreateTable(table& table1, int pk);//pk: number of primary key
void DropTable(const string &tableName);
int Select(vector <string> SelectItem,const string &tableName, const Fitter &fitter);//select ** from ** where
vector <vector <element> > Select_Test(const string &tableName, const Fitter &fitter);
void Delete(const string &tableName, const Fitter &fitter);
void Insert(const string tableName, const vector<element> entry);
void DrawResult(const table &nowtable, vector <vector <element> > &result);
double CalculateTime(long start, long stop);//calculate time
#endif // API_H
//bool cmExistTable(string tableName);
//void cmDropTable(string tableName);
//void cmCreateTable(table& table1,int pk);