MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / bindColumns

Function bindColumns

src/function/table/show_indexes.cpp:86–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static binder::expression_vector bindColumns(const TableFuncBindInput& input) {
87 std::vector<std::string> columnNames;
88 std::vector<LogicalType> columnTypes;
89 columnNames.emplace_back("table_name");
90 columnTypes.emplace_back(LogicalType::STRING());
91 columnNames.emplace_back("index_name");
92 columnTypes.emplace_back(LogicalType::STRING());
93 columnNames.emplace_back("index_type");
94 columnTypes.emplace_back(LogicalType::STRING());
95 columnNames.emplace_back("property_names");
96 columnTypes.emplace_back(LogicalType::LIST(LogicalType::STRING()));
97 columnNames.emplace_back("extension_loaded");
98 columnTypes.emplace_back(LogicalType::BOOL());
99 columnNames.emplace_back("index_definition");
100 columnTypes.emplace_back(LogicalType::STRING());
101 columnNames = TableFunction::extractYieldVariables(columnNames, input.yieldVariables);
102 return input.binder->createVariables(columnNames, columnTypes);
103}
104
105static std::unique_ptr<TableFuncBindData> bindFunc(const main::ClientContext* context,
106 const TableFuncBindInput* input) {

Callers 1

bindFuncFunction · 0.70

Calls 2

emplace_backMethod · 0.80
createVariablesMethod · 0.80

Tested by

no test coverage detected