equal
deleted
inserted
replaced
37 void process(std::istream& input, std::ostream& output, const relpipe::writer::string_t& command, const std::vector<relpipe::writer::string_t>& arguments) override { |
37 void process(std::istream& input, std::ostream& output, const relpipe::writer::string_t& command, const std::vector<relpipe::writer::string_t>& arguments) override { |
38 using namespace relpipe::writer; |
38 using namespace relpipe::writer; |
39 |
39 |
40 size_t i = 0; |
40 size_t i = 0; |
41 string_t relationName = arguments[i++]; |
41 string_t relationName = arguments[i++]; |
42 integer_t attributeCount = std::stoul(arguments[i++]); // TODO: use integer data type's method? |
42 integer_t attributeCount = std::stol(arguments[i++]); // TODO: use integer data type's method? + unsigned type |
43 boolean_t writeHeader = true; // TODO: add option for header omitting |
43 boolean_t writeHeader = true; // TODO: add option for header omitting |
44 |
44 |
45 // TODO: check argument count |
45 // TODO: check argument count |
46 |
46 |
47 std::shared_ptr<RelationalWriter> writer(Factory::create(output)); |
47 std::shared_ptr<RelationalWriter> writer(Factory::create(output)); |