equal
deleted
inserted
replaced
56 Never, |
56 Never, |
57 /** The file will be kept only if it was already present before the transformation. */ |
57 /** The file will be kept only if it was already present before the transformation. */ |
58 Automatic |
58 Automatic |
59 }; |
59 }; |
60 |
60 |
|
61 /** |
|
62 * Allows copying relations from the input stream to the output stream. |
|
63 * Such relations are specified by a regular expression. |
|
64 * We can also specify the regex replacement string and rename such relations. |
|
65 */ |
|
66 class CopyRelations { |
|
67 public: |
|
68 |
|
69 CopyRelations(const relpipe::writer::string_t pattern, const relpipe::writer::string_t replacement, const relpipe::writer::boolean_t replace) : pattern(pattern), replacement(replacement), replace(replace) { |
|
70 } |
|
71 |
|
72 virtual ~CopyRelations() { |
|
73 } |
|
74 |
|
75 const relpipe::writer::string_t pattern; |
|
76 const relpipe::writer::string_t replacement; |
|
77 const relpipe::writer::boolean_t replace; |
|
78 }; |
|
79 |
61 class Configuration { |
80 class Configuration { |
62 public: |
81 public: |
63 |
82 |
64 |
83 |
65 /** |
84 /** |
78 |
97 |
79 /** |
98 /** |
80 * SQL script to be executed before the relational input. |
99 * SQL script to be executed before the relational input. |
81 */ |
100 */ |
82 std::wistream* sqlBeforeRelational = nullptr; |
101 std::wistream* sqlBeforeRelational = nullptr; |
83 |
102 |
84 /** |
103 /** |
85 * SQL script to be executed after the relational input. |
104 * SQL script to be executed after the relational input. |
86 */ |
105 */ |
87 std::wistream* sqlAfterRelational = nullptr; |
106 std::wistream* sqlAfterRelational = nullptr; |
88 |
107 |
89 std::wstring dumpRelations; |
108 std::vector<CopyRelations> copyRelations; |
90 |
109 |
91 virtual ~Configuration() { |
110 virtual ~Configuration() { |
92 } |
111 } |
93 }; |
112 }; |
94 |
113 |