-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPI.h
More file actions
24 lines (22 loc) · 952 Bytes
/
API.h
File metadata and controls
24 lines (22 loc) · 952 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
#ifndef _API_H_
#define _API_H_
#include <vector>
#include "CatalogManager.h"
#include "Interpreter.h"
#include "RecordManager.h"
#include "bufferManager.h"
#include "BPTree.h"
#include "GlobalClass.h"
#include "ERROR/Error.h"
void CreateTable(std::string table_name, std::vector<std::string> column_names,
std::vector<std::string> data_types, int PK_index);
bool OpenTable(std::string file_name);
bool InsertTuple(std::string table_name, std::vector<DataClass> &list);
bool DropTable(std::string table_name);
//std::vector<std::string> ShowAllTable(bool b);
std::vector<Tuple> SelectTuples(std::vector<SelectCondition> &conditions, std::string table_name);
bool DeleteTuples(std::vector<SelectCondition> &conditions, std::string table_name);
bool CreateIndex(std::string table_name, std::string index_name, std::string column_name);
bool DropIndex(std::string index_name);
bool ShowTable(std::string table_name);
#endif