245058 {
245059 for (
idx_t i = start_col; i < end_col; i++) {
245060 auto index = start_index + (i - start_col);
245061 auto &entry = Entry();
245062
245064
245065 output.SetValue(col++, index, entry.catalog.GetName());
245066
245067 output.SetValue(col++, index,
Value::BIGINT(NumericCast<int64_t>(entry.catalog.GetOid())));
245068
245069 output.SetValue(col++, index, entry.schema.name);
245070
245071 output.SetValue(col++, index,
Value::BIGINT(NumericCast<int64_t>(entry.schema.oid)));
245072
245073 output.SetValue(col++, index, entry.name);
245074
245075 output.SetValue(col++, index,
Value::BIGINT(NumericCast<int64_t>(entry.oid)));
245076
245077 output.SetValue(col++, index, ColumnName(i));
245078
245079 output.SetValue(col++, index,
Value::INTEGER(UnsafeNumericCast<int32_t>(i + 1)));
245080
245081 output.SetValue(col++, index, ColumnComment(i));
245082
245084
245085 output.SetValue(col++, index, ColumnDefault(i));
245086
245088
245089 const LogicalType &type = ColumnType(i);
245090 output.SetValue(col++, index, type.id() == LogicalTypeId::INVALID ? Value() : Value(type.ToString()));
245091
245092 output.SetValue(col++, index, type.id() == LogicalTypeId::INVALID ? Value() :
Value::BIGINT(
int(type.id())));
245093 if (type == LogicalType::VARCHAR) {
245094
245095
245096 output.SetValue(col++, index, Value());
245097 } else {
245098
245099 output.SetValue(col++, index, Value());
245100 }
245101
245102 Value numeric_precision, numeric_scale, numeric_precision_radix;
245103 switch (type.id()) {
245104 case LogicalTypeId::DECIMAL:
245105 numeric_precision =
Value::INTEGER(DecimalType::GetWidth(type));
245108 break;
245109 case LogicalTypeId::HUGEINT:
245113 break;
245114 case LogicalTypeId::BIGINT:
245118 break;
245119 case LogicalTypeId::INTEGER:
245123 break;
245124 case LogicalTypeId::SMALLINT:
245128 break;
245129 case LogicalTypeId::TINYINT:
245133 break;
245134 case LogicalTypeId::FLOAT:
245138 break;
245139 case LogicalTypeId::DOUBLE:
245143 break;
245144 default:
245145 numeric_precision = Value();
245146 numeric_scale = Value();
245147 numeric_precision_radix = Value();
245148 break;
245149 }
245150
245151
245152 output.SetValue(col++, index, numeric_precision);
245153
245154 output.SetValue(col++, index, numeric_precision_radix);
245155
245156 output.SetValue(col++, index, numeric_scale);
245157 }
245158}
static DUCKDB_API Value INTEGER(int32_t value)
Create an integer Value from a specified value.
Definition duckdb.cpp:132139
static DUCKDB_API Value BOOLEAN(bool value)
Create a boolean Value from a specified value.
Definition duckdb.cpp:132118
static DUCKDB_API Value BIGINT(int64_t value)
Create a bigint Value from a specified value.
Definition duckdb.cpp:132146
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237