added some additional methods to table for later use
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user