added name methods to column class
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user