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

Function bindFunc

src/function/table/db_version.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static std::unique_ptr<TableFuncBindData> bindFunc(const ClientContext*,
21 const TableFuncBindInput* input) {
22 std::vector<std::string> returnColumnNames;
23 std::vector<LogicalType> returnTypes;
24 returnColumnNames.emplace_back("version");
25 returnTypes.emplace_back(LogicalType::STRING());
26 returnColumnNames =
27 TableFunction::extractYieldVariables(returnColumnNames, input->yieldVariables);
28 auto columns = input->binder->createVariables(returnColumnNames, returnTypes);
29 return std::make_unique<TableFuncBindData>(std::move(columns), 1 /* one row result */);
30}
31
32function_set DBVersionFunction::getFunctionSet() {
33 function_set functionSet;

Callers

nothing calls this directly

Calls 2

emplace_backMethod · 0.80
createVariablesMethod · 0.80

Tested by

no test coverage detected