-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquery.h
More file actions
37 lines (28 loc) · 852 Bytes
/
query.h
File metadata and controls
37 lines (28 loc) · 852 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
#ifndef QUERY_H
#define QUERY_H
#include "heapfile.h"
enum JoinType {NLJoin, SMJoin, HashJoin};
//
// Prototypes for query layer functions
//
const Status QU_Select(const string & result,
const int projCnt,
const attrInfo projNames[],
const attrInfo *attr,
const Operator op,
const char *attrValue);
const Status QU_Join(const string & result,
const int projCnt,
const attrInfo projNames[],
const attrInfo *attr1,
const Operator op,
const attrInfo *attr2);
const Status QU_Insert(const string & relation,
const int attrCnt,
const attrInfo attrList[]);
const Status QU_Delete(const string & relation,
const string & attrName,
const Operator op,
const Datatype type,
const char *attrValue);
#endif