added some additional methods to table for later use

This commit is contained in:
Sascha Kühl
2026-02-12 16:16:46 +01:00
parent 4c63322024
commit 746fd9e8d2
2 changed files with 30 additions and 0 deletions
+19
View File
@@ -97,6 +97,25 @@ const table_column * table::column_by_name(const table &tab, const std::string &
}
return nullptr;
}
std::string table::schema_name() const {
return schema_name_;
}
bool table::is_relation_table() const {
return false;
}
bool table::has_primary_key() const {
return false;
}
const std::string &table::join_column_name() const {
return join_column_name_;
}
const std::string &table::inverse_join_column_name() const {
return inverse_join_column_name_;
}
const table_column& table::create_column(class table &tab, const std::string &name) {
tab.columns_.emplace_back(name);