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

Method getConverterQuery

test/test_runner/csv_converter.cpp:220–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220std::string CSVConverter::NodeTableInfo::getConverterQuery(main::ClientContext* context) const {
221 auto alias = getColumnAlias(context, name);
222 if (alias.size() > 1) {
223 alias = alias.substr(1);
224 }
225 return std::format("COPY (MATCH (e:{}) WITH {} RETURN *) TO \"{}\";", name, alias,
226 outputFilePath);
227}
228
229std::string CSVConverter::RelTableInfo::getConverterQuery(main::ClientContext* context) const {
230 auto alias = getColumnAlias(context, name);

Callers 1

convertCSVFilesMethod · 0.80

Calls 2

getColumnAliasFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected