| 277 | } |
| 278 | |
| 279 | static std::unique_ptr<TableFuncBindData> bindFunc(const ClientContext* context, |
| 280 | const TableFuncBindInput* input) { |
| 281 | std::vector<std::string> columnNames = {"category", "name", "num_pages", "size_bytes"}; |
| 282 | std::vector<LogicalType> columnTypes; |
| 283 | columnTypes.push_back(LogicalType::STRING()); |
| 284 | columnTypes.push_back(LogicalType::STRING()); |
| 285 | columnTypes.push_back(LogicalType::UINT64()); |
| 286 | columnTypes.push_back(LogicalType::UINT64()); |
| 287 | |
| 288 | // Get number of entries to report |
| 289 | auto entries = collectDiskSizeInfo(context); |
| 290 | |
| 291 | auto columns = input->binder->createVariables(columnNames, columnTypes); |
| 292 | return std::make_unique<DiskSizeInfoBindData>(columns, entries.size(), context); |
| 293 | } |
| 294 | |
| 295 | static function_set getDiskSizeInfoFunctionSet(const char* name) { |
| 296 | function_set functionSet; |
nothing calls this directly
no test coverage detected