equal
deleted
inserted
replaced
65 relationNameRegEx = wregex(arguments[0]); |
65 relationNameRegEx = wregex(arguments[0]); |
66 attributeNameRegEx = wregex(arguments[1]); |
66 attributeNameRegEx = wregex(arguments[1]); |
67 searchRegEx = wregex(arguments[2]); |
67 searchRegEx = wregex(arguments[2]); |
68 replacement = arguments[3]; |
68 replacement = arguments[3]; |
69 } else { |
69 } else { |
70 throw cli::RelpipeCLIException(L"Usage: relpipe-tr-sed <relationNameRegExp> <attributeNameRegExp> <searchRegExp> <replacementRegExp>", cli::CLI::EXIT_CODE_UNKNOWN_COMMAND); |
70 throw cli::RelpipeCLIException(L"Usage: relpipe-tr-sed <relationNameRegExp> <attributeNameRegExp> <searchRegExp> <replacement>", cli::CLI::EXIT_CODE_UNKNOWN_COMMAND); |
71 } |
71 } |
72 } |
72 } |
73 |
73 |
74 void startRelation(string_t name, vector<AttributeMetadata> attributes) override { |
74 void startRelation(string_t name, vector<AttributeMetadata> attributes) override { |
75 // TODO: move to a reusable method (or use same metadata on both reader and writer side?) |
75 // TODO: move to a reusable method (or use same metadata on both reader and writer side?) |