Removed isRelation function
This commit is contained in:
parent
5f953400e2
commit
c2cb81d31d
1 changed files with 0 additions and 9 deletions
|
@ -28,15 +28,6 @@ vector<Relation> DBEngine::getRelations(){
|
||||||
return tables;
|
return tables;
|
||||||
}
|
}
|
||||||
|
|
||||||
//To check if a relation name is already used.
|
|
||||||
bool DBEngine::isRelation(string n){
|
|
||||||
for(int i = 0; i < tables.size(); i++){
|
|
||||||
if (tables[i].getTableName() == n){
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Relation& DBEngine::getTableFromName(string n){
|
Relation& DBEngine::getTableFromName(string n){
|
||||||
for(int i = 0; i < tables.size(); i++){
|
for(int i = 0; i < tables.size(); i++){
|
||||||
|
|
Reference in a new issue