74 integer_t attributeCount = std::stoul(readNext(input, arguments, i, true)); // TODO: use integer data type's method? |
75 integer_t attributeCount = std::stoul(readNext(input, arguments, i, true)); // TODO: use integer data type's method? |
75 boolean_t writeHeader = true; // TODO: add option for header omitting |
76 boolean_t writeHeader = true; // TODO: add option for header omitting |
76 |
77 |
77 std::shared_ptr<RelationalWriter> writer(Factory::create(output)); |
78 std::shared_ptr<RelationalWriter> writer(Factory::create(output)); |
78 |
79 |
79 std::vector<std::pair<string_t, TypeId >> attributes(attributeCount); |
80 std::vector<AttributeMetadata> attributes(attributeCount); |
80 |
81 |
81 for (size_t j = 0; j < attributeCount; j++) { |
82 for (size_t j = 0; j < attributeCount; j++) { |
82 string_t attributeName = readNext(input, arguments, i, true); |
83 string_t attributeName = readNext(input, arguments, i, true); |
83 TypeId attributeType = writer->toTypeId(readNext(input, arguments, i, true)); |
84 TypeId attributeType = writer->toTypeId(readNext(input, arguments, i, true)); |
84 attributes[j] = {attributeName, attributeType}; |
85 attributes[j] = {attributeName, attributeType}; |