◆ ViewColumnHelper()
244996 : entry(entry) {
244997 try {
244998
244999 entry.BindView(context);
245000 } catch (std::exception &ex) {
245001 }
245002 auto view_columns = entry.GetColumnInfo();
245003 if (view_columns) {
245004 column_names = view_columns->names;
245005 types = view_columns->types;
245007 bound_view = true;
245008 } else {
245009
245010 types.push_back(LogicalTypeId::INVALID);
245011 }
245012 }
static void DeduplicateColumns(vector< string > &names)
Deduplicate column names for interop with external libraries.
Definition duckdb.cpp:296062
◆ Entry()
◆ NumColumns()
| idx_t duckdb::ViewColumnHelper::NumColumns |
( |
| ) |
|
|
inlineoverridevirtual |
◆ ColumnName()
| Value duckdb::ViewColumnHelper::ColumnName |
( |
idx_t | col | ) |
|
|
inlineoverridevirtual |
Implements duckdb::ColumnHelper.
245020 {
245021 if (types[0].id() == LogicalTypeId::INVALID) {
245022 return Value();
245023 }
245024 return Value(col < entry.aliases.size() ? entry.aliases[col] : column_names[col]);
245025 }
◆ ColumnType()
◆ ColumnDefault()
| const Value duckdb::ViewColumnHelper::ColumnDefault |
( |
idx_t | col | ) |
|
|
inlineoverridevirtual |
◆ IsNullable()
| bool duckdb::ViewColumnHelper::IsNullable |
( |
idx_t | col | ) |
|
|
inlineoverridevirtual |
◆ ColumnComment()
| const Value duckdb::ViewColumnHelper::ColumnComment |
( |
idx_t | col | ) |
|
|
inlineoverridevirtual |
Implements duckdb::ColumnHelper.
245035 {
245036 return bound_view ? entry.GetColumnComment(col) : Value();
245037 }
The documentation for this class was generated from the following file: