added name methods to column class

This commit is contained in:
Sascha Kühl
2025-10-29 16:08:59 +01:00
parent 56f307fd37
commit 44c50cf2af
2 changed files with 15 additions and 3 deletions
+11
View File
@@ -63,6 +63,17 @@ column &column::as(std::string a)
return *this;
}
const std::string& column::column_name() const {
return name;
}
std::string column::full_name() const {
if (table_ && !table_->name.empty()) {
return table_->name + "." + name;
}
return name;
}
bool column::is_function() const
{
return function_ != sql_function_t::NONE;