57 lines
1,013 B
C++
Executable file
57 lines
1,013 B
C++
Executable file
#include "DBEngine.h"
|
|
|
|
using namespace std;
|
|
|
|
DBEngine::DBEngine(){
|
|
//
|
|
}
|
|
|
|
//create a new table in memory
|
|
void DBEngine::createCmd(){
|
|
//
|
|
}
|
|
|
|
//open a txt file, parse SQL script, load data in table
|
|
//void DBEngine::openCmd(){
|
|
//
|
|
//}
|
|
|
|
//should write cmdList to a .txt file
|
|
void DBEngine::saveCmd(){
|
|
//
|
|
}
|
|
|
|
//display the database
|
|
void DBEngine::showCmd(){
|
|
//
|
|
}
|
|
|
|
//add a tuple to a table in the memory
|
|
void DBEngine::insertQuery(){
|
|
//
|
|
}
|
|
|
|
//remove a tuple from a table in the memory
|
|
void DBEngine::deleteQuery(){
|
|
//
|
|
}
|
|
|
|
//search and return one more tuples from a table in the memory
|
|
void DBEngine::selectQuery(){
|
|
//
|
|
}
|
|
|
|
//return a subset of attributes (columns)
|
|
void DBEngine::projectQuery(){
|
|
//
|
|
}
|
|
|
|
//each row in the first table is paired with all the rows in the second table
|
|
void DBEngine::productQuery(){
|
|
//
|
|
}
|
|
|
|
//true if relations have the same # of attributes and each attribute must be from the same domain
|
|
bool DBEngine::unionComp(){
|
|
return false;
|
|
}
|