src/relpipe-in-csv.cpp
branchv_0
changeset 15 157bb1d5e08a
parent 14 012d491e219a
child 16 15ee963675af
--- a/src/relpipe-in-csv.cpp	Wed Sep 23 11:23:12 2020 +0200
+++ b/src/relpipe-in-csv.cpp	Wed Sep 23 11:26:33 2020 +0200
@@ -45,7 +45,8 @@
 
 	try {
 		CSVCommand command;
-		command.processDataStream(cout, cin, cli.arguments());
+		std::shared_ptr<RelationalWriter> writer(Factory::create(std::cout));
+		command.process(cin, cli.arguments(), writer);
 		resultCode = CLI::EXIT_CODE_SUCCESS;
 	} catch (RelpipeWriterException e) {
 		fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessge().c_str());